У меня в htaccess Redirect 301 /14090-royal-canin-x-small-adult-15-kg http://site.com/royal-canin-x-small-adult Но перенаправление идет на http://site.com/royal-canin-x-small-adult?_route_=14090-royal-canin-x-small-adult-15-kg Может подскажите почему так? В htaccess есть запись с таким окончанием RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA] Но я не понимаю, что она означает и как ее изменить.
BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html <ifModule mod_headers.c> Header append Vary User-Agent </ifModule> ## END INCREASE PAGE SPEED HTACCESS MODIFICATION ## # SEO URL Settings RewriteEngine On # If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/ RewriteBase / RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L] RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L] RewriteRule ^download/(.*) /index.php?route=error/not_found [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css) RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA] RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] RewriteCond %{QUERY_STRING} ^$ RewriteRule ^index\.php$ / [R=301] #Leverage browser caching <IfModule mod_expires.c> ExpiresActive On ExpiresDefault "access 2 days" ExpiresByType image/jpg "access 1 week" ExpiresByType image/jpeg "access 1 week" ExpiresByType image/gif "access 1 week" ExpiresByType image/png "access 1 week" ExpiresByType text/css "access 1 week" ExpiresByType application/pdf "access 1 week" ExpiresByType text/x-javascript "access 1 week" ExpiresByType application/x-shockwave-flash "access 1 week"
Так пробуй Код: BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html <ifModule mod_headers.c> Header append Vary User-Agent </ifModule> ## END INCREASE PAGE SPEED HTACCESS MODIFICATION ## # SEO URL Settings RewriteEngine On # If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/ RewriteBase / RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L] RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L] RewriteRule ^download/(.*) /index.php?route=error/not_found [L] RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css) RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ [URL='http://wmasteru.ru/redirect/?url=http%253A%252F%252F%25251%252F%25241']http://%1/$1[/URL] [R=301,L] RewriteCond %{QUERY_STRING} ^$ RewriteRule ^index\.php$ / [R=301] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA] #Leverage browser caching <IfModule mod_expires.c> ExpiresActive On ExpiresDefault "access 2 days" ExpiresByType image/jpg "access 1 week" ExpiresByType image/jpeg "access 1 week" ExpiresByType image/gif "access 1 week" ExpiresByType image/png "access 1 week" ExpiresByType text/css "access 1 week" ExpiresByType application/pdf "access 1 week" ExpiresByType text/x-javascript "access 1 week" ExpiresByType application/x-shockwave-flash "access 1 week"
А что это за запись? Код: RewriteRule ^(.*)$ [URL='http://wmasteru.ru/redirect/?url=http%253A%252F%252F%25251%252F%25241']http://%1/$1[/URL] [R=301,L]
Сори ошибка, из-за копирования это вот эта строка RewriteRule ^(.*)$ http://%1/$1 [R=301,L] просто из-за копирования добавился редирект форумный)