删除url中的public_html插件时出现问题
它看起来像这样
http://shirodailynews.esy.es/public_html/about但我想像这样
http://shirodailynews.esy.es/about我当前在public_html中的.htaccess
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]我的结构文件是这样的:
system
application
public_html
css
js
img我还像这样配置了系统和应用程序路径
$system_path = '../system';
$application_folder = '../application';当我访问主url时,它不显示public_html
http://shirodailynews.esy.es/但是当我访问另一个链接时,它会使用public_html slug重定向它。
http://shirodailynews.esy.es/public_html/about如何删除url中的public_html插件?提前感谢!
发布于 2015-08-01 19:22:48
您的webroot似乎不是public_html,所以准确地说,您可能只需要将index.php和.htaccess文件放在它下面的目录中。
https://stackoverflow.com/questions/31757883
复制相似问题