Posted - 07/29/2020 : 19:24:11
Thank you very much for those replies Vince and Peter. You helped me find this solution, which I think works a bit better:
(1) In .htaccess # comment out 3 lines and use a different proddetail.php RewriteRule
[font=Courier New]# RewriteCond %{REQUEST_FILENAME} !-f # RewriteCond %{REQUEST_FILENAME} !-d # RewriteRule (.*) proddetail.php?prod=$1 [QSA,nc,L,B] RewriteRule ^([^/.]+)$ proddetail.php?prod=$1 [QSA,nc,L,B][/font=Courier New]
(2) In includes.php spark up the message displayed when an extensionless SEO friendly style URL is not found, like: [maroon]xxx[/maroon]
[font=Courier New][orange]// Extensionless SEO friendly style page URL not found message[/orange] $GLOBALS['xxSryNA']='<span style="font-size: 150%; font-weight: bold;">Sorry, that page has now been removed.</span><br><br>You can <a href="search.php" title="Go to the Search page"><strong>search</strong></a> for something similar.'; $GLOBALS['xxSimPro']='Click here to view other pages in the same category';[/font=Courier New]
And when an extensioned URL is not found, like [maroon]xxx.php[/maroon], the static Custom HTML Error Page 404.php is displayed. That explains likely reasons why that particular page or file was not found, and includes the "Search Website" option.
Also, while looking through [url="https://www.ecommercetemplates.com/phphelp/ecommplus/parameters.asp#proddetailstatic"]includes.php parameter entries[/url], I was using the "Product detail static page" parameter:
[font=Courier New]$urlfillerchar='-'; [orange]// For proddetail.php page, use-dashes-to-separate-words in Product Name[/orange][/font=Courier New]
Correct me if I am wrong, but that $urlfillerchar entry becomes obsolete (and should be omitted) when using the SEO friendly URL's and $detlinkspacechar='-'; ... yes ?
Gary [img]https://itzap.com.au/pics/logo/itzap-website-design-works-mini-logo.png[/img]

|