[英]URL module perfectly working on localhost, but not working on web server
The followingURL module is working以下URL模块正在工作
http://localhost/webnew/wms/directs/main.php?_modid=&_mod=&del=18
but can't run it on the server like this:但不能像这样在服务器上运行它:
http://......../wms/helpmes/main.php?_modid=&_mod=&status=0&no=1
why??为什么??
How can I run on the server normally like localhost?如何像 localhost 一样在服务器上正常运行?
I use code igniter.我使用代码点火器。
In your config file config/config.php please make sure you have set permitted_uri_chars
like below.在您的配置文件中的config / config.php文件,请确保您已设置
permitted_uri_chars
像下面。 $config['permitted_uri_chars'] = 'az 0-9~%.:_\\-@\\=';
And also please make sure rewrite module
is on in your server.并且请确保
rewrite module
在您的服务器上。 for apache server you have to do like below cammand.对于 apache 服务器,你必须像下面的命令那样做。
sudo a2enmod rewrite
sudo vi /etc/apache2/
sudo vi /etc/apache2/apache2.conf
In your apchae config file you have to write like this在你的 apchae 配置文件中,你必须这样写
<Directory /var/www/html/>
AllowOverride All
</Directory>
And then restart your server.然后重启你的服务器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.