htaccess mod_rewrite 无法在另一台计算机上工作
因此,我当前正在开发的框架中有一个 .htaccess 文件,它可以在一台计算机上运行,但不能在另一台计算机上运行。两个系统都基于 Windows 7,并且都运行 WAMP Server 2.0。不确定这个问题可能是什么,但如果有人可以伸出援手,那就太好了。
<代码> RewriteEngine 开启
RewriteBase /home/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+) index.php/$1 [L]
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]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
行:未注释?
您是否检查过第二台服务器上的 Apache httpd.conf 文件中的
Have you checked that the line:
is uncommented in your Apache httpd.conf file on the second server?
我记得
mod_rewrite
必须在 WAMP 中手动启用。确保它是(phpinfo()
会告诉你)。I recall
mod_rewrite
must be enabled manually in WAMP. Make sure it is (aphpinfo()
would tell you).