Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

HELP! .htaccess в очередной раз

Recommended Posts

Упорно отдает 500 ошибку на googlebase.xml


Найти не могу :( Текст .htaccess ниже..... help help help


# SEO URL Settings
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/ 
    RewriteEngine On
    RewriteBase /
    RewriteRule ^sitemap.xml$ index.php?route=feed/fast_sitemap [L]
    RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
    RewriteRule ^rss.xml$ index.php?route=feed/latest_products_rss [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]

# Add "gzip Encoding" to already gzipped files
    AddType text/css .css .cssgz
    AddType text/javascript .js .jsgz
    AddEncoding x-gzip .cssgz .jsgz

# Enable Gzip into use mod_gzip.c
    <IfModule mod_gzip.c>
        mod_gzip_on         Yes
        mod_gzip_dechunk    Yes
        mod_gzip_item_include file      \.(html?|txt|css|js|php|pl)$
        mod_gzip_item_include mime      ^text\.*
        mod_gzip_item_include mime      ^application/x-javascript.*
        mod_gzip_item_include mime      ^application/x-font-woff.*
        mod_gzip_item_exclude mime      ^image\.*
        mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*

    <IfModule mod_deflate.c>
        AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript

# Disable access to php ettor log file
    <Files php_error.log>
        Order allow,deny
        Deny from all
        Satisfy All

# Cache-Control
    <IfModule mod_headers.c>
        Header unset Last-Modified
# 120 days
    <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|swf|cssgz|jsgz)$">
    Header set Cache-Control "max-age=7776000, public"
# 120 days + Append Accept Encoding
    <FilesMatch "\.(css|js|cssgz|jsgz)$">
    Header set Cache-Control "max-age=7776000, public"
    Header append Vary: Accept-Encoding
# 120 days
    <FilesMatch "\.(xml|txt)$">
    Header set Cache-Control "max-age=7776000, public, must-revalidate"
# 120 days
    <FilesMatch "\.(html|htm|php)$">
        Header set Cache-Control "max-age=7776000, private, must-revalidate"
# Compatible with old browsers
    <FilesMatch "\.(js|css|gif|png|jpe?g|pdf|xml|oga|ogg|m4a|ogv|mp4|m4v|webm|svg|svgz|eot|ttf|otf|woff|ico|webp|appcache|manifest|htc|crx|oex|xpi|safariextz|vcf)$" >
        Header unset X-UA-Compatible

# Optimization for Browser Caching 
    FileETag MTime Size
    <IfModule mod_expires.c>
        ExpiresActive on
        <filesmatch ".(jpg|jpeg|gif|png|ico|css|js|cssgz|jsgz)$">
            ExpiresDefault "access plus 1 year"
        ExpiresDefault "access 7 days"
        ExpiresByType application/javascript "access plus 1 year"
        ExpiresByType text/javascript "access plus 1 year"
        ExpiresByType text/css "access plus 1 year"
        ExpiresByType text/html "access plus 7 day"
        ExpiresByType text/x-javascript "access 1 year"
        ExpiresByType image/gif "access plus 1 year"
        ExpiresByType image/jpeg "access plus 1 year"
        ExpiresByType image/png "access plus 1 year"
        ExpiresByType image/jpg "access plus 1 year"
        ExpiresByType image/x-icon "access 1 year"
        ExpiresByType application/x-shockwave-flash "access 1 year"

#Compatible with old browsers
    <IfModule mod_setenvif.c>
        BrowserMatch "MSIE" force-no-vary
        BrowserMatch "Mozilla/4.[0-9]{2}" force-no-vary
        BrowserMatch ^Mozilla/4\.0[678] no-gzip
        BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

#”бираем index.php
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/ 
    RewriteRule ^index\.php$ / [R=301,L]
#”бираем /index.php?route=common/home
    RewriteCond %{QUERY_STRING} ^route=common/home$
    RewriteCond %{REQUEST_METHOD} !^POST$
    RewriteRule ^index\.php$ https://%{HTTP_HOST}? [R=301,L]
#”бираем /index.php?route=product/product
    RewriteCond %{QUERY_STRING} ^route=product/product$
    RewriteCond %{REQUEST_METHOD} !^POST$
    RewriteRule ^index\.php$ https://%{HTTP_HOST}? [R=301,L]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.