Forum Moderators: coopster
Say I want my URLS to look like this:
[myserver.com...]
filename would be the php file.
Someone mentioned the following solution but it isn't passing the proper URI:
RewriteEngine on
RewriteCond %{REQUEST_URI}!filename\.php
RewriteRule ^filename(.*)$ \filename.php?uri=$1
With this, you've got two files: filename and filename.php When filename is requested, it rewrites to filename.php for parsing. The question I have is how you should go about preserving the entire URI "/var1/var2/var3" in a rewrite to filename.php.
If the requested URL is:
[example.com...]
the $uri variable will contain "/test/blah/whatever"