I have a setup where I use the following to rewrite any page that uses the .html ext to use a .php file that is located inside the products folder.
This works fine, but since it is rewriting - I am not able to grab the referer page that the user clicks on to get to the page - links/products/whatever.html.
If i do not use this rewrite rule, I can see the referer as expected, but not with the following code.
Is there a way for me to use the following yet still allow the referer to be accessed?
#used to rewrite any url with links/products/whatever.html to use links/products/index.php
RewriteEngine On
RewriteRule ^(links)/(products)(/.*)?$ links/products/index.php [L]