繁体   English   中英

关于我的网站的一些问题

[英]Some problems regarding my website

我昨天买了一个网站,我的网站在 WAMP 上运行良好,但现在我遇到了一些问题:

1:我的网站是 csgodonut.com,它工作正常,但是当我输入 www. 在 url 前面然后整个网站停止工作。 当您尝试使用 Steam 登录时,您将 go 回到登录页面,但是当您 go 到 csgodonut.com 时没有 www。 它应该像它一样工作。

2:我仍然需要使用 csgodonut.com/index.php/home/home 到 go 到主页以外的其他页面,即使我有:

.htaccess:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

<Files "index.php">
AcceptPathInfo On
</Files>

config.php:

$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]

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM