First off I don't know where this would go, so I am putting it here.
So, I am using mod_rewrite to redirct a page like
example.com/stuff to example.com/site.php?page=stuff
but the user still only sees example.com/stuff
Here what I am using my .htaccess file
Code:
RewriteEngine on
RewriteRule ^([a-z]*)$ site.php?page=$1 [L]
And it works fine, but the problem since I making it just a directory rather then giving it a file extension like example.xom/stuff.html its not going to directories that already exist.
How can I make it so that if there already is a
example.xom/stuff it will goto it, but if there is not it'll goto example.com/site.php?page=stuff.
Thanks.
|