Enabling Rewrite Engine
Posted by: kaka_ssca (59.93.247.---)
Date: September 15, 2006 10:16AM

Hello All,
I am now using the WAMP. and for some reason i want to start the Rewrite Engine in my server. I have a .htaccess file which has a line at the begining of this file the dirsctive is
RewriteEngine On

Now when i fire the local site it gives me an error and i checked the error log and saw

[Tue Jan 01 00:59:56 2002] [alert] [client 127.0.0.1] c:/wamp/www/ecarsite/.htaccess: Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration

This is written there. I dont want to upgrade the version right now as i know that the newer version support apache moule installation. But this is istalled in my different computer and i can not right now upgrade this to my own computer. Can i install the mod in my current installation?? Please help me.

Thanks in advance.

Options: ReplyQuote
Re: Enabling Rewrite Engine
Posted by: CyberSpatium (67.170.181.---)
Date: September 15, 2006 12:10PM

enable the mod_rewrite in your httpd.conf file. find
#LoadModule rewrite_module modules/mod_rewrite.so

change to
LoadModule rewrite_module modules/mod_rewrite.so

save the file and restart apache for the new setting to take effect.

Options: ReplyQuote
Re: Enabling Rewrite Engine
Posted by: GDR! (---.espol.com.pl)
Date: November 07, 2006 11:10PM

Your problems might have been related to non-standard wwwroot path. I have encountered the same problem and I needed to fix the following fragment of the httpd.conf file:


#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "i:/!www">

I hope that it will help.


Options: ReplyQuote


Sorry, only registered users may post in this forum.