开发者

htaccess mod_rewrite not working on another computer

开发者 https://www.devze.com 2023-01-26 14:04 出处:网络
So I have an .htaccess file in a framework I am currently working on and it works on one computer but not on another. Both systems are windows 7 based and both are running WAMP Server 2.0. Not sure wh

So I have an .htaccess file in a framework I am currently working on and it works on one computer but not on another. Both systems are windows 7 based and both are running WAMP Server 2.0. Not sure what this issue could be, but if anyone can lend a hand that'd be great.

开发者_运维技巧 RewriteEngine on

RewriteBase /home/

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^(.+) index.php/$1 [L]


Have you checked that the line:

LoadModule rewrite_module modules/mod_rewrite.so

is uncommented in your Apache httpd.conf file on the second server?


I recall mod_rewrite must be enabled manually in WAMP. Make sure it is (a phpinfo() would tell you).

0

精彩评论

暂无评论...
验证码 换一张
取 消