我昨天买了一个网站,我的网站在 WAMP 上运行良好,但现在我遇到了一些问题:
1:我的网站是 csgodonut.com ,它工作正常,但是当我把 www. 在 url 前面然后整个网站停止工作。当您尝试使用 Steam 登录时,您会返回登录页面,但是当您在没有 www 的情况下访问 csgodonut.com 时。它像它应该的那样工作。
2:我仍然需要使用 csgodonut.com/index.php/home/home 去访问其他页面而不是 home,即使我有:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
<Files "index.php">
AcceptPathInfo On
</Files>
$config['index_page'] = "";
$config['uri_protocol'] = 'REQUEST_URI';
尝试将您的问题移至正确的队列
然而
试试这个
RewriteEngine on
RewriteBase /site_folder/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L]
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句