htacces RewriteEngine
Posted by: Sik (---.brasov.rdsnet.ro)
Date: February 07, 2006 09:59AM

Hello
I created a .htaccess file in root folder (www) with this code

RewriteEngine On
RewriteRule ^(.*)-(.*)-(.*).htm /index.php?s1=$a&s2=$b&s3=$c

but now with any page I access on localhost, I have this error:

"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log."

I put the same file on a server and it works, but I need to work in WAMP. If I delete the htaccess file WAMP work again.

I need help.
Please someone tell me what I have to do that rewrite rule work!

Thank you!


Options: ReplyQuote
Re: htacces RewriteEngine
Posted by: Sik (---.brasov.rdsnet.ro)
Date: February 07, 2006 03:12PM

Maybe someone try just a little to help me.

Options: ReplyQuote
Re: htacces RewriteEngine
Posted by: sik (---.brasov.rdsnet.ro)
Date: February 09, 2006 02:12PM

Congratulations for this program. But the team doesn't exist. Nobody answer at problems.

Options: ReplyQuote
Re: htacces RewriteEngine
Posted by: Robert (---.eburwd3.vic.optusnet.com.au)
Date: February 09, 2006 03:36PM

The forum is for users to help each other.

Go search Apache forum for htaccess problems.

Options: ReplyQuote
Re: htacces RewriteEngine
Posted by: Robert (---.eburwd3.vic.optusnet.com.au)
Date: February 09, 2006 04:04PM

I looked at httpd.conf
mod_rewrite is not loaded by default.

edit httpd.conf and remove the #

Options: ReplyQuote
Re: htacces RewriteEngine
Posted by: sik (---.brasov.rdsnet.ro)
Date: February 10, 2006 12:45PM

Thank you!

Options: ReplyQuote
Re: htacces RewriteEngine
Posted by: rockdeman (---.san.res.rr.com)
Date: March 19, 2006 06:52AM

just to get this right: I have WAMP5 V1.6.1 which featured Apache 2.

If I am correct, with this version you have only to uncomment the line

# LoadModule rewrite_module modules/mod_rewrite.so

and there is no:
# AddModule mod_rewrite.c

Only Apache version before 2.0 have the AddModule thing right?

Options: ReplyQuote
Re: htacces RewriteEngine
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: March 19, 2006 08:37PM

< If I am correct, with this version you have only to uncomment the line
< # LoadModule rewrite_module modules/mod_rewrite.so
<
< and there is no:
< # AddModule mod_rewrite.c
<
< Only Apache version before 2.0 have the AddModule thing right?

Ignore the AddModule mod_rewrite.c stated above, you need to enable modrwrite using LoadModule.

just edit your httpd.conf file, fine this line:
#LoadModule rewrite_module modules/mod_rewrite.so

Chane this to:
LoadModule rewrite_module modules/mod_rewrite.so

Save the file, restart apache for the new settigns to take effect.

Options: ReplyQuote


Sorry, only registered users may post in this forum.