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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.