mod_rewrite : make a "fake" directory that displays an "index.php" from another folde
I'm attempting to use clean URLs.
The about page my site is located at http://www.example.com/frontEnd/about.php
I'd like to access it by merely typing in http://www.example.com/about/
Similar to how you clean ugly variables in a URL :
I've been playing around with mod_rewrite in the .htaccess file in the root directory, but I can't seem to get it to work.
RewriteRule ^([\w\-]+)/?$ index.php?var=$1
I've tried :
But this doesn't seem to work.
RewriteRule ^/about/?$ frontEnd/about.php