0
我有一些不同的國防部重寫,他們工作得很好。但最簡單的一個並不好。我只是不想在我的索引中顯示一個子頁面。我如何使內部/不可見的國防部重寫只爲主頁
因此http://foliodock.com顯示http://foliodock.com/blog/index.php?p=4但仍然只顯示瀏覽器欄中的域。當前的代碼是
RewriteRule ^$ blog/index.php?p=4 [L]
在直播現場它顯示在我的WordPress博客啓用重定向foliodock.com/blog/home原因,但如果我關閉博客他們/的index.php?p = 4顯示像這應該。
我該如何做到不可見或內部重定向?
我有一些額外的重定向和主索引中的索引文件,所以我不能虛擬主機到博客文件夾等。
完整的重定向是
# force trailing slash
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1/ [L,R=301]
# force not to use www
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule^http://%1%{REQUEST_URI} [R=301,L]
# Rewrite Base Url to Blog
RewriteRule ^$ blog/index.php?p=4 [L]
# Skip pier, thumb and blog
RewriteRule ^(pier|timthumb|blog)($|/) $ [L]
# load the index file
RewriteRule ^([^/]*)/$ index.html [L]
RewriteRule ^([^/]*)/([^/]*)/$ /index.html [L]
對不起,這個愚蠢的問題,但我似乎是盲目的?