Showing posts with label rewriterule. Show all posts
Showing posts with label rewriterule. Show all posts

Monday, 7 December 2009

Getting Apache RewriteRule to work

No intro or background, to get the RewriteRule to work in htaccess you need to activate it. This is specifically for Apache and not ISAPI rewrite on IIS.
  1. Open httpd.conf
  2. Look for MULTIPLE occurances of AllowOverride None
  3. Change to AllowOverride All
  4. Un comment this line #LoadModule rewrite_module modules/mod_rewrite.so
  5. Save & restart the apache server
Couple of note worthy points:
  1. Apache recommend not using htaccess for peformance reasons. There are other methods for nice urls.
  2. This is a Dev environment. I've not check out if the above has any security issues, for live servers.
Retweet this button on every post blogger
 
Bookmark and Share