954,124 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

mod_rewrite

I have been experimenting with the mod_rewrite, and as far as I can tell I have the code right. Whenever I upload it, it wont allow anyone to veiw where I place it, I get the Forbidden error. Would this sergest that the mod_rewrite isn't working or is disabled (I have tested it on another Apache server and it seams to work find).

Ragnarok
Junior Poster in Training
94 posts since Mar 2004
Reputation Points: 10
Solved Threads: 0
 

does your apache includes a mod_rewrite?
have you tried "httpd -l" ?

THSNET
Newbie Poster
Banned
3 posts since Apr 2004
Reputation Points: 10
Solved Threads: 0
 

I'd also like to see your .htaccess file

cscgal
The Queen of DaniWeb
Administrator
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
 

Sounds like you're not running it right. Have you contacted your webhost?

iris_eye
Newbie Poster
9 posts since May 2004
Reputation Points: 10
Solved Threads: 2
 

Don't forget to enable mod_rewrite! Even after you install mod_rewrite you have to go into your .conf file and uncomment it out...should be this line:

LoadModule rewrite_module modules/mod_rewrite.so


Uncomment it and then restart your webserver..(I'm assuming it's apache). Then make sure that you have 'AllowOverrides' set to 'all' (if it is at 'none') so that mod_rewrite can work.

TKS
Posting Pro in Training
470 posts since Jan 2004
Reputation Points: 108
Solved Threads: 18
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: