I have a very simple rewrite rule. My entire .htaccess file is as follows:
我有一个非常简单的重写规则。我的整个.htaccess文件如下:
RewriteEngine On
RewriteRule ^login/([a-zA-Z0-9-/]+)$ company-page.php?company_url=$1
RewriteRule ^login/([a-zA-Z0-9-/]+)/$ company-page.php?company_url=$1
This is perfectly run on locally Wamp server but not working on online server. It display following error.!
这完全在本地Wamp服务器上运行,但不能在在线服务器上运行。它显示以下错误。
The requested URL /EZsample/login/mereco-technologies/ was not found on this server.
Can anyone help me!
谁能帮我!
2 个解决方案
#1
1
if you are using a VPS please use this article,
若您使用的是VPS,请使用本文,
1.Make sure u have enabled Mod_Rewrite ? 2.Made the changes in the virtual host configurations
1.确定你已经启用了Mod_Rewrite? 2.Made虚拟主机配置中的更改
https://www.digitalocean.com/community/tutorials/how-to-set-up-mod_rewrite
#2
0
This line of code helped me solve a very similar issue:
这行代码帮助我解决了一个非常类似的问题:
Options -MultiViews
#1
1
if you are using a VPS please use this article,
若您使用的是VPS,请使用本文,
1.Make sure u have enabled Mod_Rewrite ? 2.Made the changes in the virtual host configurations
1.确定你已经启用了Mod_Rewrite? 2.Made虚拟主机配置中的更改
https://www.digitalocean.com/community/tutorials/how-to-set-up-mod_rewrite
#2
0
This line of code helped me solve a very similar issue:
这行代码帮助我解决了一个非常类似的问题:
Options -MultiViews