Hi,
I'm looking for some help with a mod_rewrite rule for apache.
I have this:
RewriteEngine On
RewriteBase /
#only use rewrite if the file being called does not exist!!!
RewriteCond %{REQUEST_FILENAME} !-f
#RewriteRule ^(.*) [login to view URL]$1 [L,NE]
RewriteRule ^(.*) [login to view URL]$1 [L,NE]
It redirects all requests for non-existent files to the [login to view URL] page. The problem is that it doesn't pass the querystring values (e.g. after a '?' in the following query:
"[login to view URL]"
in this case I'd go to <[login to view URL]> what I'd like is something like <[login to view URL]> or something similar that I can work with).
I'm looking for the proper rule which redirects as above but which also provides access to the original querystring in some easily used manner.
Thank you for your help!
Best Regards,
John
## Deliverables
1) Complete and fully-functional working code.
## Platform
apache on Windows/Unix/Linux