关于我网站的一些问题

时间:2018-01-11 12:23:07

标签: php codeigniter

我昨天买了一个网站,我的网站在WAMP上工作得很好,但现在我有一些问题:

1: 我的网站是csgodonut.com,它应该像它应该工作,但当我把www。在网址前面然后整个网站停止工作。当你尝试使用steam登录时,你会回到登录页面,但是当你去没有www的csgodonut.com时。它的工作原理应该如此。

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

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';

1 个答案:

答案 0 :(得分:1)

尝试将您的问题移至正确的队列

怎么样

试试这个

RewriteEngine on
RewriteBase /site_folder/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L]
相关问题