我嘗試做一些簡單的重定向,它看起來像簡單的重寫不工作
RewriteRule ^shop.php?arttyp=Indianerflöten$ /basiskategorie/indianerfloeten-high-spirits [R=301,L]
,但我失去了一些東西,因爲不工作
我應該逃避的東西嗎?
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteCond %{QUERY_STRING} ^(?:[^&]*&)*arttyp=Indianerflöten
RewriteRule ^/?shop\.php$ /basiskategorie/indianerfloeten-high-spirits [R=301,L]
# RewriteRule ^shop.php?arttyp=Indianerflöten /basiskategorie/indianerfloeten-high-spirits [R=301,L]
# Redirect 301 /shop.php /produkte
# Redirect permanent /shop.php?arttyp=Indianerflöten /basiskategorie/indianerfloeten-high-spirits
# RewriteRule ^shop.php?arttyp=Indianerflöten$ /basiskategorie/indianerfloeten-high-spirits [R=301,NC,L]
# RewriteRule ^shop.php?arttyp=Indianerflöten /basiskategorie/indianerfloeten-high-spirits [R=301,NC,L]
# RewriteRule ^shop.php?arttyp=Instrumente\ für\ Klangtherapie$ /basiskategorie/monochorde [R=301,L]
# Redirect permanent "shop.php?arttyp=Instrumente für Klangtherapie" /basiskategorie/monochorde
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
我正在輸入答案。 –
@AbhishekGurjar的確,看起來很簡單。所以我們一起創建了一個答案:-) – arkascha
感謝您的反饋我只是嘗試,但仍然無法正常工作我將粘貼我的整個htaccess在這裏 – deroccha