htaccess не работают редиректы

artcrazy
На сайте с 20.03.2010
Offline
135
556

Камрады, добрый день!

Подскажите, пожалуйста, в чем ошибка в htaccess?

Options All -ExecCGI -Indexes -Includes +FollowSymLinks
AddDefaultCharset utf8
ServerSignature Off

# EE 404 page for missing pages
ErrorDocument 404 /404

# Simple 404 for missing files
<FilesMatch "(\.jpe?g|gif|png|bmp)$">
ErrorDocument 404 "File Not Found"
</FilesMatch>

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /

# Removes index.php from ExpressionEngine URLs
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteCond %{REQUEST_URI} !/cp/.* [NC]
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]

# Directs all EE web requests through the site index file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]

RewriteRule ^links_u/(.*)$ http://www.onwsite.ru/ [R=301,L]
RewriteCond %{QUERY_STRING} ^id= [NC]
RewriteRule (.*) $1? [R=301,L]

RewriteRule ^cad4d(.*)$ http://www.onwsite.ru/ [R=301,L]
RewriteRule ^catalog/(.*)$ http://www.onwsite.ru/shop [R=301,L]

# Убирием дубли страниц со слешем на конце
RewriteBase /
RewriteCond %{HTTP_HOST} (.*)
RewriteCond %{REQUEST_URI} /$ [NC]
RewriteRule ^(.*)(/)$ $1 [L,R=301]

</IfModule>

Не работают редиректы:

RewriteRule ^cad4d(.*)$ http://www.onwsite.ru/ [R=301,L]

RewriteRule ^catalog/(.*)$ http://www.onwsite.ru/shop [R=301,L]

Буду благодарен за помощь.

siv1987
На сайте с 02.04.2009
Offline
427
#1

Все что здесь идет после

RewriteRule ^(.*)$ /index.php/$1 [L]

Нужно добавить перед

# Directs all EE web requests through the site index file

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий