Jump to content

[SOLVED] mod_rewrite exceptions


Recommended Posts

i am creating a membership program and the user profiles

will be like myspace,

http://www.mysite.com/username

 

i know how to do that,

but i want to make exceptions to this,

because it messes with the directories.

 

because if i have the directory members

and a user signs up as members his URL

will be

http://www.mysite.com/members

 

but when i try to run

http://www.mysite.com/members/

it will not work unless i have the "index.php"

added to the URL, how can i make exceptions

in the htaccess code? heres my code:

 

RewriteEngine on
RewriteRule ^([^/\.]+)/?$ members/profile.php?user=$1 [L]

 

so what i want to do is not run the code above if "user" equals

certain things such as members, images, templates, etc.

Link to comment
https://forums.phpfreaks.com/topic/98910-solved-mod_rewrite-exceptions/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.