Содержимое файла .htaccess Options +FollowSymlinks # Prevent Directoy listing Options -Indexes # Prevent Direct Access to files Order deny,allow Deny from all # SEO URL Settings RewriteEngine On RewriteCond %{HTTP_HOST} ^www.mysite.ru RewriteRule ^(.*)$ http://mysite.ru/$1 [R=301,L] # Редирект для главной (с /index.php на /) RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\ HTTP/ RewriteRule ^index\.html$ / [R=301,L] RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/ RewriteRule ^index\.php$ / [R=301,L] # If your installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/ RewriteBase / RewriteCond %{QUERY_STRING} product(?:ID|id) RewriteRule ^index.php(.*)$ - [L,R=404] ErrorDocument 404 http://mysite/not_found.php RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L] RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [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]