Reply
Apache Mod_Rewrite Help
Old 04-22-2005, 04:15 AM Apache Mod_Rewrite Help
Average Talker

Posts: 24
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.
marcus1060 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Reply     « Reply to Apache Mod_Rewrite Help
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11548 seconds with 12 queries