0
我有下面我的wordpress網站的一個設定國防部重寫問題多參數是htaccess的:國防部重寫與WordPress的
# BEGIN s2Member GZIP exclusions
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteCond %{QUERY_STRING} (^|\?|&)s2member_file_download\=.+ [OR]
RewriteCond %{QUERY_STRING} (^|\?|&)no-gzip\=1
RewriteRule .* - [E=no-gzip:1]
</IfModule>
# END s2Member GZIP exclusions
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteRule ^book/([^-]*)/([^-]*)$ book/?bookid=$1&bookt=$2
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
以下行似乎沒有工作
RewriteRule ^book/([^-]*)/([^-]*)$ book/?bookid=$1&bookt=$2
我想鏈接 這可能幫助:從www.example.com/book/?bookid=1 & bookt =絲毫不差
編輯www.example.com/book/1/tittle節目內容
www.example.com/book/1/test顯示「找不到網頁」,而www.example.com/book/1/顯示頁面 - 但顯然沒有第二個變量
是「www.example.com/book/?bookid = 1&bookt = tittle」一個WP URL? – anubhava
是的,這是一個WP網址 –