官方下载下来的 youhost/public/.htacss 文件里面是这样的,当你配置好域名数据库后会一直报错No input file specified.<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>替换为:<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>
本文解决了一个关于YouHost系统中.public/.htaccess文件配置错误的问题,通过调整RewriteRule设置来确保域名数据库配置正确且不再出现No input file specified错误。

被折叠的 条评论
为什么被折叠?



