Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



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

Posts: 24
Trades: 0
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
 
 
Register now for full access!
Reply     « Reply to Apache Mod_Rewrite Help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.07764 seconds with 12 queries