clonetrooper9494 Posted February 17, 2009 Share Posted February 17, 2009 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 More sharing options...
justsomeguy Posted February 18, 2009 Share Posted February 18, 2009 What happens if you remove the FollowSymlinks option? Link to comment Share on other sites More sharing options...
clonetrooper9494 Posted February 18, 2009 Author Share Posted February 18, 2009 No difference :)Have any other suggestions? Link to comment Share on other sites More sharing options...
justsomeguy Posted February 18, 2009 Share Posted February 18, 2009 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 More sharing options...
clonetrooper9494 Posted February 18, 2009 Author Share Posted February 18, 2009 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 More sharing options...
justsomeguy Posted February 18, 2009 Share Posted February 18, 2009 You disabled content negotiation? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.