我有這樣的htaccess.htaccess的URL重寫幫助
RewriteEngine On
RewriteBase/
RewriteCond %{HTTP_HOST} !^www\.test\.com$ [NC]
RewriteRule ^(.*)$ http://www.test.com/$1 [R=301,L]
RewriteRule ^home.html$ index__.php [L]
RewriteRule ^prodotti.html$ prodotti.php [L]
RewriteRule ^azienda.html$ azienda.php [L]
RewriteRule ^news.html$ news.php [L]
RewriteRule ^outlet.html$ outlet.php [L]
RewriteRule ^contatti.html$ contatti.php [L]
RewriteRule ^news-(.*).html$ news.php?id=$1 [L]
RewriteRule ^arr.html$ prodotti-cat.php?cat=a [L]
RewriteRule ^sed.html$ prodotti-cat.php?cat=s [L]
RewriteRule ^par.html$ prodotti-cat.php?cat=p [L]
RewriteRule ^cont.html$ prodotti-cat.php?cat=c [L]
RewriteRule ^comp.html$ prodotti-cat.php?cat=co [L]
RewriteRule ^outlet/([a-zA-Z0-9_-]+).html$ outlet-dett.php?prd=$1 [L]
RewriteRule ^(.*)/(.*)/$ prodotti-cat.php?cat=$1&f=$2 [L]
RewriteRule ^(.*)/(.*).html$ prodotti-dett.php?cat=$1&prd=$2 [L]
如果我寫在我的瀏覽器http://www.test.it/outlet/test-2.html我得到NOT FOUND ... 爲什麼??? 幫助!!!如果該文件存在
什麼是你重寫的地址例子?請澄清你打算從哪些數據中獲得。 Thks – 2011-03-10 14:33:52
RewriteRule^outlet /([a-zA-Z0-9 _-] +)。html $ outlet-dett.php?prd = $ 1 [L] – Ste 2011-03-10 14:35:04