I've seen this asked before and people provide answers, but none of them seem to work. I'm trying to rewrite the URL so any request to /whatever show as /. I don't want the location of the files to change, just the URL. For example, if someone types in:
Http://www.mysite.com/whatever ( the files are located at /docroot/whatever )
I want the URL to show http://www.mysite.com/
In my htaccess ( placed in /docroot , not /docroot/whatever ) I'm currently using:
RewriteEngine on
RewriteRule ^whatever/(.+)$ /$1 [L]
What's happening is the URL is staying , but the server is looking for the files /docroot .
That's the opposite of what I need, I need the URL to be , with the server looking for the files in /docroot/whatever .