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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.