2013-07-27 83 views
0

进出口新的WordPress和服务器管理员在一般情况下, 我刚刚安装在我的本地目录中的子文件夹中的WordPress博客。但我在配置.htaccess时遇到问题。在安装WordPress的文件夹被称为onlifestyle,并在根目录下。 我的网址的格式如下: http://onlifestyle.org/onlifestyle/health/basic-principles-of-proper-nutrition 代替 http://onlifestyle.org/health/basic-principles-of-proper-nutrition 我的根的.htaccess是:在WordPress的.htaccess重写URL

RewriteEngine On 
RewriteCond %{HTTP_HOST} ^(www.)?onlifestyle.org$ 
RewriteRule ^(/)?$ onlifestyle/$1 [NC,L] 

WordPress的的.htaccess:

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

和使用即时通讯的永久链接:

http://onlifestyle.org/onlifestyle/%category%/%postname% 

我应该如何配置我的WordPress正为了跳过子目录的名称与网址

回答