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).
精彩评论