初学者.htaccess问题(与Codeigniter相关)
|
我第一次为网站的桌面版本设置了CodeIgniter,将AllowOverride从None更改为All后,我遇到了一些问题,因此以下.htaccess规则可以正常工作:
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\\.php|images|css|js|m|robots\\.txt|favicon\\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]
问题是,我在m.domain.com上拥有该网站的移动版本-该网站从domain.com/m中提取了其内容。当AllowOverride为\'None \'时,这可以很好地工作。现在,我将其更改为\'All \'并实现了上述.htaccess文件-该子域不再起作用,并且显示了\“ Apache Server的测试页\” html文件。
任何人都不知道是什么原因引起的吗?谢谢!
没有找到相关结果
已邀请:
1 个回复
量华