在 Ubuntu 中启用 mod_rewrite 时出现问题
我正在尝试从Windows服务器更改为Linux服务器。为此,我尝试在 ubuntu 中启用 mod_write 。我已采取所有必要的步骤来启用 mod_rewrite,因为 mod_rewrite 显示在加载的模块下。我已经设置了 .htacess 文件的所有权限。但由于某种原因,重写似乎在 Linux 服务器上不起作用。当我在 Windows 服务器中使用相同的代码时,它工作正常。
任何人都可以帮助我解决这个问题。我们将非常感谢您的帮助。
谢谢。 拉詹。
I am trying to change from windows to linux server. And for that i am trying to enable mod_write in ubuntu. I have taken all the necessary steps to enable the mod_rewrite as mod_rewrite is displayed under loaded modules. I have set all the permissions for the .htacess file. But for some reason the rewrite does not appear to be working in the linux server. It was working fine while i was using the same code in windows server.
Can anyone please help me in this issue. Your help will be really appreciated.
Thanks.
Rajan.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
检查您是否将
AllowOverride
指令设置为None
。这通常是在设置 VirtualHosts 的文件中完成的Check if you have the
AllowOverride
directive set toNone
. This is usually done in a file which sets your VirtualHosts如果将
AllowOverride
设置为ALL
不起作用,您可能需要像这样调试 mod_rewrite:在
RewriteEngine On
之后添加If setting
AllowOverride
toALL
didn't work, you might want to debug mod_rewrite like so:add after
RewriteEngine On