roark Posted February 1, 2007 Share Posted February 1, 2007 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 https://forums.phpfreaks.com/topic/36569-cant-get-mod_rewite-working-with-apache-2/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.