Jump to content

Mod_rewrite Problem


clonetrooper9494

Recommended Posts

I am extremely angry right now, because mod_rewrite is acting really strangely... if you go to http://clonedrone.com/~news/profile.html, you see a 404 error. if you visit http://clonedrone.com/~newS/profile.html, or any other variation of http://clonedrone.com/~*Something*/profile.html, it works EXCEPT for 'news'.Why is this?!this is the contents of my htaccess file:

Options +FollowSymlinksRewriteEngine onRewriteRule ^~([^/]+)/profile.html /userarea/user.php?user=$1 [NC]

Can any one explain why this problem is occurring and how I can fix it?

Link to comment
Share on other sites

What happens if you add a rule before the other one, specifically targetting that?RewriteRule ^~news/profile.html /userarea/user.php?user=news [NC]Also try to specificaly disable that option, e.g.:Options -FollowSymlinksIs there actually a dir called ~news? Is it a symlink?

Link to comment
Share on other sites

RewriteRule ^~news/profile.html /userarea/user.php?user=news [NC] didn't even work!!! This is making me really angry, I guess I will have to use a different username to display the news.Options -FollowSymlinksjust returns a 403 error. I don't think that's a good thing. so I changed it back.I don't have a folder named ~news, and I have no clue what a symlink is, so I don't think it is that either...This person seams to have a problem with 'news' also...http://www.webmasterworld.com/forum92/2282.htmI tried what that guy did also, but it didn't help.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...