2013-05-11 55 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的插件目录中的文件将这个,把一个文件夹中,激活和你设置。