Forum Moderators: phranque
This does not work:
RewriteRule ^(.+).php$ /template_prod.php?load_prod=$1 [NC,L]
This does work:
RewriteRule ^(.+).html$ /template_prod.php?load_prod=$1 [NC,L]
Can someone tell me why and how to rewrite to a URL that ends in php at the root level?
Rewrite any .php URL request to the new filepath.
Rewrite any .php request (which matches the updated internal information for the new path) to the new filepath.
Rewrite any .php request (which matches the updated internal information for the new path) to the new filepath.
... loops forever or until the browser or server gives up ...
You need a RewriteCond in front of the Rule to check that the URL is coming directly from THE_REQUEST and not as a result of a previous rewrite.