Jump to content

can't get mod_rewite working with apache 2


roark

Recommended Posts

Hi guys,

apache 2.2

winxp pro

php5

 

I'm having trouble with getting mod_rewrite to work on my machine with the above configuration.

I'm new to mod_rewrite.

 

If I run phpinfo(); it tells me I have succesfully loaded mod_rewrite.

however I cannot get any mod_rewrite rule to work.

 

here are the parts of httpd.conf I have changed:

[pre]

LoadModule rewrite_module modules/mod_rewrite.so

 

DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"

 

<Directory />

    Options FollowSymLinks

    AllowOverride All

    Order deny,allow

    Deny from all

    Satisfy all

</Directory>

[/pre]

 

And I am trying to use a .htaccess file with the following in it:

[pre]

Options +Indexes

Options +FollowSymlinks

RewriteEngine on

RewriteBase /

RewriteRule ^wacko\.html$ index.html [L]

[/pre]

(so when I browse http://localhost/wacko.html it should redirect me to http://localhost/index.html)

 

This is not working, nor any mod_rewrite I try.

 

I'm sure it must be something with the httpd.conf file but I have tried for days with no success,

any hel would be greatly appreciated

 

Thank you!

Roark

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.