Connecting Tech Pros Worldwide Forums | Help | Site Map

mod_rewrite help

Member
 
Join Date: Nov 2008
Location: Chennai, India
Posts: 100
#1: Dec 8 '08
Hi to all,

I want to edit the mod_rewrite in Apache, i dont know where it present and i dont know how to edit that,

actually i m getting "Invalid command 'RewriteEngine' ".

I am using wampserver 2.0 for apache,

can any one help me in this please,

Regards,
magesh

Newbie
 
Join Date: Mar 2009
Location: India
Posts: 5
#2: Mar 2 '09

re: mod_rewrite help


Hi Magesh,

Let me know when you are thrown out of this error???

Thanks
Bharath
Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,949
#3: Jun 4 '09

re: mod_rewrite help


Hey, Magesh.

You need to load the mod_rewrite module, in your httpd (config file).

Open said file, and locate the line that looks like this:

Expand|Select|Wrap|Line Numbers
  1. #LoadModule rewrite_module modules/mod_rewrite.so
  2.  
Remove the hash / pound sign from the beginning of the line, and restart your server.

Let us know if this solves it.

- mark
Reply