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).

Recommended Answers

All 4 Replies

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

I'd also like to see your .htaccess file

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

Member Avatar for TKSS

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.