.htaccess 子域中的codeigniter htaccess文件
我在codeigniter做了一个项目。 它在localhost中工作得非常好。 localhost中的htaccess文件:.htaccess 子域中的codeigniter htaccess文件,.htaccess,codeigniter,mod-rewrite,nginx,.htaccess,Codeigniter,Mod Rewrite,Nginx,我在codeigniter做了一个项目。 它在localhost中工作得非常好。 localhost中的htaccess文件: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) index.php/$1 [L] </IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>
重新启动发动机
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则(.*)index.php/$1[L]
ErrorDocument 404/index.php
然后我将该项目删除为subdomain college.utest.kz托管
但它在互联网上不起作用。更改了codeigniter文档中的htaccess文件内容。结果是一样的
感谢您阅读试试看
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
重新启动发动机
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则^(.*)$index.php/$1[L]
使用您的子域文件夹名rewrite base您可以使用哪台服务器,如linux、Windowsetc@ChauhanShaileshlinuxin浏览器显示未找到的页面。日志文件中写着:
[error]32412#0:*4993796 FastCGI在从上游读取响应头时发送到stderr:“主脚本未知”,客户端:185.97.115.34,服务器:college.utest.kz,请求:“GET/college.php HTTP/1.1”,上游:fastcgi://unix:/var/run/php-fpm/college.utest.kz.sock:,主持人:“college.utest.kz”
你能给我一个实时url吗?如果可能的话,谢谢你。但这没有帮助
RewriteEngine on
RewriteCond $1 !^(index\.php|(.*)\.swf|forums|images|css|downloads|js|robots \.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php?$1 [L,QSA]
RewriteEngine On
RewriteBase /subdomain_name
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]