1
我有以下URL這是正確的...的mod_rewrite從靜態到動態的URL
http://www.mydomain.co.uk/cask-beer/wells-and-youngs
,但我需要它來渲染這個頁面:
http://www.mydomain.co.uk/cask-beer?catID=4
這是我當前的.htaccess,它已經正確地爲其他頁面提供服務。我想添加一些東西來管理這個其他規則。我有一個嘗試,你可以木桶啤酒
php_flag magic_quotes_gpc off
AddDefaultCharset UTF-8
Options -Indexes +FollowSymLinks
#
# Setting rewrite rules
#
<IfModule mod_rewrite.c>
RewriteEngine On
# Set next line to your Wolf CMS root - if not in subdir, then just/
RewriteBase/
# Rules to allow install sequence to test for mod_rewrite support
RewriteRule ^install/index.html$ install/index.php?rewrite=1 [L,QSA]
RewriteRule ^install/index.php$ install/index.php?rewrite=1 [L,QSA]
RewriteRule ^install/$ install/index.php?rewrite=1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
# Administration URL rewriting.
RewriteRule ^admin(.*)$ admin/index.php?$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
# Main URL rewriting.
RewriteRule ^(.*)$ index.php?WOLFPAGE=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ index.php?cask-beer?$1
</IfModule>
任何幫助,將不勝感激。 乾杯
你需要一個1比1的規則?我的意思是,這個規則必須是僅適用於該URL或者你需要重寫一組網址 – 2010-04-02 19:03:57
MMM有三類共... 桶裝啤酒,蘋果酒 的, 專家啤酒 每一個接下來的產品, 例如木桶啤酒/富勒 – Andy 2010-04-02 19:14:24