<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php
</IfModule>
I will explain how i have done the coding in brief, I wanted to shield my website's page original URLS from user and instead shown them user friendly URLS. In database, corresponding to these URLS i can get exact physical locations of the files.
So suppose if i have my website url http://www.ABCDEF.com/Contact/ ,then as this doesnt not exist then as per .htaccess it will be forwarded to index.php file, where i have used $SERVER['REDIRECT_URL'] to get Contact from the URL clicked by user. Then in database i can search the actual physical file corresponding to Contact and show it to the user.
It was working perfectly for last 1 year but yesterday due to some issues my php-cgi was changed by webhosting company and $SERVER['REDIRECT_URL'] has stopped working.
Any help would be highly appreciated.
Thanks,