500 Internal Server Error with mod_rewrite
I am trying to use mod_rewrite (first time I've used it, so complete and utter noob).
I've precisely followed the instructions here for "A simple mod_rewrite example" (the first and simplest example in the tutorial - I thought that would be a sensible place to start!):
However, when I add the rewrite rule to my .htaccess, I get a 500 Internal Server Error reported in the web browser when I try to load alice.html or bob.html
I'm running Apace2.2 on Debian 6.0 (LAMP server).
Any ideas? :confused::confused::confused:
There might be some compilation error with the rewrite rule in .htaccess. You can check in the apache error log which will show the line causing the error.
You can refer for a simple example of non-www to www redirect:
It was a case of changing the AllowOverride directive to "All" in the given directory in apache2.conf
|All times are GMT +1. The time now is 01:05 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.