Hey there,
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 :
Code:
RewriteEngine On
RewriteRule ^([\w\-]+)/?$ index.php?var=$1
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.
I've tried :
Code:
RewriteEngine On
RewriteRule ^/about/?$ frontEnd/about.php
But this doesn't seem to work.