htaccess mod_rewrite 无法在另一台计算机上工作

发布于 2024-10-04 01:35:22 字数 362 浏览 0 评论 0原文

因此,我当前正在开发的框架中有一个 .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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

倚栏听风 2024-10-11 01:35:22

行:未注释?

LoadModule rewrite_module modules/mod_rewrite.so

您是否检查过第二台服务器上的 Apache httpd.conf 文件中的

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?

深海夜未眠 2024-10-11 01:35:22

我记得 mod_rewrite 必须在 WAMP 中手动启用。确保它是(phpinfo() 会告诉你)。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文