View Single Post
Old 02-03-2013, 01:11 PM   PM User | #1
DR.Wong
Regular Coder

 
DR.Wong's Avatar
 
Join Date: Jan 2005
Posts: 360
Thanks: 23
Thanked 1 Time in 1 Post
DR.Wong is an unknown quantity at this point
mod_rewrite : make a "fake" directory that displays an "index.php" from another folde

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.
__________________
-DR.Wong

Wheres the food at?

Last edited by DR.Wong; 02-03-2013 at 01:54 PM..
DR.Wong is offline   Reply With Quote