微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

CodeIgnitor URL在Linux Apache2上找不到文件

无法让我的控制器在Linux apache2上工作(从WAMP传输)

config.PHP文件

$config['base_url'] = 'http://subdomain.domain.com/'; $config['index_page'] = ''; $config['uri_protocol'] = 'REQUEST_URI';

apache2日志

[Tue Sep 23 03:36:08 2014] [error] [client 192.168.1.1] File does not exist: /var/www/subdomain.domain.com/execute

apache2 conf

如何在Apache xampp中设置环境variables?

Apache重写规则到Nginx for HHVM

在Apache 2.4中安装casperJS和phantomJS将数据传递给PHP

包括不工作

.htaccess阻止所有,但我的IP

<VirtualHost *:80> ServerName subdomain.domain.com DocumentRoot /var/www/subdomain.domain.com <Directory /var/www/subdomain.domain.com> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost>

的.htaccess

RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* index.PHP/$0 [PT,L]

不确定什么是错的。

htaccess强制https并将wwwredirect到非www,但没有其他子域

使用veLocity split()将一个string拆分成一个数组似乎不起作用

Apache多VirtualDocumentRoot

AWS上的504(网关超时)

从301redirect中删除查询string

改变你的.htaccess文件到这个:

RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.PHP?/$1 [L]

在你的配置文件中,试试这个:

$config['uri_protocol'] = 'AUTO';

这可能会解决你的问题。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐