Log in

View Full Version : .htaccess and WAMP



mburt
03-06-2007, 03:59 PM
So I set up WAMP5, and everything is working fine.
My path is c:\wamp\www\ and that's where I put my files. When I put my .htaccess file in the (and yes, it is .htaccess, not .htaccess.txt) I get a 500 error from WAMP saying:

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.

How can I put .htaccess on my WAMP server?

mburt
03-06-2007, 04:07 PM
Okay... I found out the problem. It wasn't the server, but the .htaccess file itself.

RewriteEngine On
Options +FollowSymlinks
RewriteBase /

RewriteCond %{HTTP_HOST} mburt.mb.funpic.org
RewriteCond %{REQUEST_URI} !testing/
RewriteRule ^(.*)$ subfolder/$1 [L]
As you can see, I'm writing it so it will redirect:
mburt.funpic.org/testing
to testing.mburt.funpic.org/
For some reason the Apache log says the RewriteEngine isn't a command.

Twey
03-06-2007, 04:16 PM
Probably you don't have mod_rewrite installed/loaded.

mburt
03-06-2007, 04:22 PM
Thanks Twey, exactly right. I forgot to check it off on the Apache menu.

seco
03-30-2008, 04:05 AM
i enable the rewrite module and now any page on the site says unable to connect
i disable it again and still give me the same message !!!
any idea?

thanks in advance.