Jump to content

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>

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

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

# 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"
    </FilesMatch>
# 120 days + Append Accept Encoding
    <FilesMatch "\.(css|js|cssgz|jsgz)$">
    Header set Cache-Control "max-age=7776000, public"
    Header append Vary: Accept-Encoding
    </FilesMatch>   
# 120 days
    <FilesMatch "\.(xml|txt)$">
    Header set Cache-Control "max-age=7776000, public, must-revalidate"
    </FilesMatch>
# 120 days
    <FilesMatch "\.(html|htm|php)$">
        Header set Cache-Control "max-age=7776000, private, must-revalidate"
    </FilesMatch>
# 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
    </FilesMatch>
</IfModule>

# 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"
        </filesmatch>
        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"
    </IfModule>

#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
    </IfModule>

#”бираем 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]
 

Share this post


Link to post
Share on other sites

ну а index.php?route=feed/google_base работает?

Share this post


Link to post
Share on other sites
3 минуты назад, spectre сказал:

ну а index.php?route=feed/google_base работает?

нет.. не работает.... И понять почему - я не могу :(

Share this post


Link to post
Share on other sites

Кстати rss.xml тоже 500. По какой то причине только sitemap.xml - РАБОТАЕТ

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×

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.