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正爲了跳過子目錄的名稱與網址