简体   繁体   中英

htaccess mod_rewrite not working on another computer

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]

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

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?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM