为什么这个网站会返回http 404?

时间:2014-12-29 18:02:20

标签: apache .htaccess mod-rewrite rewrite

这是我的htaccess:

 RewriteEngine On
RewriteBase /
RewriteEngine on
RewriteCond %{HTTP_HOST} ^slople.com$
RewriteRule (.*) http://www.slople.com/$1 [R=301,L]

# pass the default character set
AddDefaultCharset utf-8

<IfModule mod_rewrite.c>

    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(?:.+/)?(\d+)/?$ index.php?slopeId=$1 [L,QSA]

    #only rewrite if it's not a file and not /login/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_URI} !^/community/

    #Wordpress-Regeln
    #RewriteBase /community/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /community/index.php [L]


</IfModule> 

为什么网址http://www.slople.com/deutschland/hessen/buseck/alter-steinbruch/14231?language=DE应符合此规则

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(?:.+/)?(\d+)/?$ index.php?slopeId=$1 [L,QSA]

返回一个http 404?

我认为&#34; [L]&#34;会停止执行htaccess中的后续规则吗?

由于 圣拉斐尔

0 个答案:

没有答案