我试了很多次,我读了很多例子,但我的。htaccess不工作。我的域名是:Lieboundsprueche。com/When I go to www.liebeundsprueche。它并没有将我重定向到Lieboundsprueche。这是我的。htaccess文件:
# BEGIN WordPress
<IfModule mod_rewrite.c>
DirectoryIndex index.php
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^ %{REQUEST_FILENAME} [L]
# invalid code - and useless if the ^ and % were joined
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{REQUEST_FILENAME}/index.php -f
RewriteRule ^ %{REQUEST_FILENAME}/index.php [L]
# invalid code as the second condition can NEVER happen and the Rule is flawed (regex of ^ !!!).
RewriteCond %{HTTP_HOST} ^www\\.liebeundsprueche\\.com$
RewriteRule ^/?$ "http\\:\\/\\/liebeundspruechee\\.com\\/" [R=301,L]
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule ^ 404/ [L]
# ditto
RewriteRule ^(.*[^/]) index.php?var=$1 [QSA,L]
</IfModule>
# END WordPress
请告诉我错误在哪里?