2013-05-11 53 views
0

我有一個WordPress的安裝,不幸的是在根文件夾中,因爲我沒有設法將安裝移動到一個子文件夾,我試圖設置一個不同的目錄索引,但我可以現在還沒有訪問index.php,並且在site.php中有一個鏈接。當我試圖鏈接site.xx/index.php的我只是送送site.xx/WordPress的htaccess索引問題

DirectoryIndex site.php 

# BEGIN WordPress 
<IfModule mod_rewrite.c> 
RewriteEngine On 
RewriteBase/
RewriteRule ^site\.php$ - [L] 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule . /site.php [L] 
</IfModule> 

# END WordPress 

回答

0

你必須改變所有引用到「的index.php」在這種情況下site.php。如果您爲索引使用不同的名稱。我的HostGator的工作,並已經這樣做了,爲客戶的FIAR量:)

+0

試過,仍然沒有。 – Jon 2013-05-11 21:06:12

+0

更新後的當前htaccess ..仍然無法正常工作。 – Jon 2013-05-11 21:41:38

0
<?php 
/* 
Plugin Name: Disable Canonical URL Redirection 
Description: Disables the "Canonical URL Redirect" features of WordPress 2.3 and above. 
Version: 1.0 
Author: Mark Jaquith 
Author URI: http://markjaquith.com/ 
*/ 

remove_filter('template_redirect', 'redirect_canonical'); 

?> 

在WordPress的插件目錄中的文件將這個,把一個文件夾中,激活和你設置。