Forum Moderators: phranque

Message Too Old, No Replies

mod rewrite not working!don't know why

OS Vista Home Basic

         

Salum

9:35 pm on Mar 6, 2009 (gmt 0)

10+ Year Member



Hello guys,

so, I recently bought a laptop and decided to transfer the stuff from my desktop to me laptop, so I installed WAMP (latest version). Well, the thing is most of my script use mod_rewrite. and apparently it is not working on my notebook, I get a 404 not found error, but it is working on my desktop. I think the possible reasons are: apache is not reading .htaccess, my .htaccess is wrong, or this #*$! windows vista (which I plan to get rid of very soon) simply won't let apache does its job.

there follows my info:
Apache 2.2.11
mod_rewrite IS ENABLED

I even wrote on httpd.conf
AccessFileName .htaccess

but still not working

my conf in httpd.conf

Options FollowSymLinks
AllowOverride All
Order Allow,Deny
Allow from all

Well, now there goes my .htaccess:

RewriteEngine On
Options +FollowSymLinks
IndexIgnore */*
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php

I'vwe tried to delete .htaccess and many more things, my guess is that apache isn't reading .htaccess files.

I run Windows VIsta Home Basic

[edited by: jdMorgan at 10:44 pm (utc) on Mar. 6, 2009]
[edit reason] Tidied up [/edit]

jdMorgan

1:42 pm on Mar 10, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try renaming ".htaccess" to "htaccess.txt" and updating the AccessFileName setting accordingly.

Also, check the configuration and settings of MultiViews, mod_alias, mod_speling, and AcceptPathInfo, as these can interfere with mod_rewrite under certain circumstances.

It's easy to find out if your server isn't reading .htaccess: Put an invalid or mis-spelled directive in the file and look for the resulting server error when the file is processed.

Jim

Salum

7:06 pm on Mar 10, 2009 (gmt 0)

10+ Year Member



jdMorgan. please send me your fone. I feel like sending you flowers hahaha!

thank you so much!

you've just solved a problem that was bugging me for a week!

basically I set:

AccessFileName htaccess.txt

thank you once again!