Перейти до вмісту
Пошук в
  • Детальніше...
Шукати результати, які ...
Шукати результати в ...

alex380

Користувачі
  
  • Публікації

    63
  • З нами

  • Відвідування

Повідомлення, опубліковані користувачем alex380

  1. Здравствуйте, после настройки файла htaccess не обновляются модификаторы, когда привожу его в прежний вид, всё обновляется. Подскажите, где я накосячил

    # 1.To use URL Alias you need to be running apache with mod_rewrite enabled.
    
    # 2. In your opencart directory rename htaccess.txt to .htaccess.
    
    # For any support issues please visit: http://www.opencart.com
    
    Options +FollowSymlinks
    
    # Prevent Directoy listing
    Options -Indexes
    
    # Prevent Direct Access to files
    <FilesMatch "(?i)((\.tpl|.twig|\.ini|\.log|(?<!robots)\.txt))">
     Require all denied
    ## For apache 2.2 and older, replace "Require all denied" with these two lines :
    # Order deny,allow
    # Deny from all
    </FilesMatch>
    
    # 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=extension/feed/google_sitemap [L]
    RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
    RewriteRule ^system/storage/(.*) 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 %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.(php|html|htm)\ HTTP/
    RewriteRule ^(.*)index\.(php|html|htm)$ $1 [R=301,L]
    
    RewriteCond %{HTTP_HOST} !^vodadarlife.ru$ [NC]
    RewriteRule ^(.*)$ http://vodadarlife.ru/$1 [R=301,L]
    
    ### Additional Settings that may need to be enabled for some servers
    ### Uncomment the commands by removing the # sign in front of it.
    ### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that.
    
    # 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it:
    # php_flag register_globals off
    
    # 2. If your cart has magic quotes enabled, This may work to disable it:
    # php_flag magic_quotes_gpc Off
    
    # 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try
    # php_value upload_max_filesize 999M
    
    # 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
    # php_value post_max_size 999M
    
    # 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
    # php_value max_execution_time 200
    
    # 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
    # php_value max_input_time 200
    
    # 7. disable open_basedir limitations
    # php_admin_value open_basedir none
    # Кеш и сжатие
    <IfModule mod_deflate.c>
      AddOutputFilterByType DEFLATE text/html
      AddOutputFilterByType DEFLATE application/javascript
      AddOutputFilterByType DEFLATE text/javascript
      AddOutputFilterByType DEFLATE text/css
      <IfModule mod_setenvif.c>
        BrowserMatch ^Mozilla/4 gzip-only-text/html
        BrowserMatch ^Mozilla/4\.0[678] no-gzip
        BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
      </IfModule>
    </IfModule>
    
    # Кеш
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg "access 1 year"
    ExpiresByType image/jpeg "access 1 year"
    ExpiresByType image/gif "access 1 year"
    ExpiresByType image/png "access 1 year"
    ExpiresByType text/css "access 1 month"
    ExpiresByType text/html "access 1 month"
    ExpiresByType application/pdf "access 1 month"
    ExpiresByType text/x-javascript "access 1 month"
    ExpiresByType application/x-shockwave-flash "access 1 month"
    ExpiresByType image/x-icon "access 1 year"
    ExpiresDefault "access 1 month"
    </IfModule>
    
    RewriteEngine On
    
    RewriteBase /
    
    RewriteCond %{QUERY_STRING} ^_route_=burenie-na-vodu/razreshenie-na-burenie-skvazhiny$
    RewriteRule ^(.*)$ http://vodadarlife.ru/razreshenie-na-burenie-skvazhiny? [R=301,L]
    
    RewriteCond %{QUERY_STRING} ^_route_=burenie-na-vodu/artezianskaja-skvazhina$
    RewriteRule ^(.*)$ http://vodadarlife.ru/artezianskaja-skvazhina? [R=301,L]
    
    RewriteCond %{QUERY_STRING} ^_route_=burenie-na-vodu/abissinskaja-skvazhina$
    RewriteRule ^(.*)$ http://vodadarlife.ru/abissinskaja-skvazhina? [R=301,L]
    
    RewriteCond %{QUERY_STRING} ^_route_=burenie-na-vodu/skvazhina-na-pesok$
    RewriteRule ^(.*)$ http://vodadarlife.ru/skvazhina-na-pesok? [R=301,L]
    
    RewriteCond %{QUERY_STRING} ^_route_=burenie-na-vodu/kak-prochistit-skvazhinu-svoimi-rukami$
    RewriteRule ^(.*)$ http://vodadarlife.ru/kak-prochistit-skvazhinu-svoimi-rukami? [R=301,L]
    
    RewriteCond %{QUERY_STRING} ^_route_=burenie-na-vodu/skvazhina-na-vodu-svoimi-rukami$
    RewriteRule ^(.*)$ http://vodadarlife.ru/skvazhina-na-vodu-svoimi-rukami? [R=301,L]
    
    RewriteCond %{QUERY_STRING} ^_route_=kontakty$
    RewriteRule ^(.*)$ http://vodadarlife.ru/contact? [R=301,L]
    
    RewriteCond %{QUERY_STRING} ^_route_=video
    RewriteRule ^(.*)$ http://vodadarlife.ru? [R=301,L]
    
    RewriteCond %{QUERY_STRING} ^_route_=foto-nacha-rabota$
    RewriteRule ^(.*)$ http://vodadarlife.ru? [R=301,L]
    
    RewriteCond %{QUERY_STRING} ^_route_=burenie-na-vodu/storony-skvazhin$
    RewriteRule ^(.*)$ http://vodadarlife.ru? [R=301,L]
    
    RewriteCond %{QUERY_STRING} ^_route_=burenie-na-vodu/vopros-otvet$
    RewriteRule ^(.*)$ http://vodadarlife.ru? [R=301,L]
    
    RewriteCond %{QUERY_STRING} ^_route_=burenie-na-vodu$
    RewriteRule ^(.*)$ http://vodadarlife.ru? [R=301,L]
    
    
    ## Блокировка по USER AGENT:
    RewriteCond %{HTTP_USER_AGENT} FlipboardProxy [OR]
    
    RewriteCond %{HTTP_USER_AGENT} LinkpadBot [OR]
    
    RewriteCond %{HTTP_USER_AGENT} BLEXBot [OR]
    
    RewriteCond %{HTTP_USER_AGENT} Detectify [OR]
    
    RewriteCond %{HTTP_USER_AGENT} trovitBot [OR]
    
    RewriteCond %{HTTP_USER_AGENT} aiHitBot [OR]
    
    RewriteCond %{HTTP_USER_AGENT} Riddler [OR]
    
    RewriteCond %{HTTP_USER_AGENT} SemrushBot [OR]
    
    RewriteCond %{HTTP_USER_AGENT} MJ12bot [OR]
    
    RewriteCond %{HTTP_USER_AGENT} MegaIndex.ru [OR]
    
    RewriteCond %{HTTP_USER_AGENT} bingbot [OR]
    
    RewriteCond %{HTTP_USER_AGENT} AhrefsBot [OR]
    
    RewriteCond %{HTTP_USER_AGENT} Java [OR]
    
    RewriteCond %{HTTP_USER_AGENT} NjuiceBot [OR]
    
    RewriteCond %{HTTP_USER_AGENT} Gigabot [OR]
    
    RewriteCond %{HTTP_USER_AGENT} Baiduspider [OR]
    
    RewriteCond %{HTTP_USER_AGENT} JS-Kit [OR]
    
    RewriteCond %{HTTP_USER_AGENT} Voyager [OR]
    
    RewriteCond %{HTTP_USER_AGENT} PostRank [OR]
    
    RewriteCond %{HTTP_USER_AGENT} PycURL [OR]
    
    RewriteCond %{HTTP_USER_AGENT} Aport [OR]
    
    RewriteCond %{HTTP_USER_AGENT} ia_archiver [OR]
    
    RewriteCond %{HTTP_USER_AGENT} DotBot [OR]
    
    RewriteCond %{HTTP_USER_AGENT} SurveyBot [OR]
    
    RewriteCond %{HTTP_USER_AGENT} larbin [OR]
    
    RewriteCond %{HTTP_USER_AGENT} Butterfly [OR]
    
    RewriteCond %{HTTP_USER_AGENT} libwww [OR]
    
    RewriteCond %{HTTP_USER_AGENT} Wget [OR]
    
    RewriteCond %{HTTP_USER_AGENT} SWeb [OR]
    
    RewriteCond %{HTTP_USER_AGENT} LinkExchanger [OR]
    
    RewriteCond %{HTTP_USER_AGENT} Soup [OR]
    
    RewriteCond %{HTTP_USER_AGENT} WordPress [OR]
    
    RewriteCond %{HTTP_USER_AGENT} PHP/ [OR]
    
    RewriteCond %{HTTP_USER_AGENT} spbot [OR]
    
    RewriteCond %{HTTP_USER_AGENT} MLBot [OR]
    
    RewriteCond %{HTTP_USER_AGENT} InternetSeer [OR]
    
    RewriteCond %{HTTP_USER_AGENT} FairShare [OR]
    
    RewriteCond %{HTTP_USER_AGENT} Yeti [OR]
    
    RewriteCond %{HTTP_USER_AGENT} Birubot [OR]
    
    RewriteCond %{HTTP_USER_AGENT} YottosBot [OR]
    
    RewriteCond %{HTTP_USER_AGENT} gold\ crawler [OR]
    
    RewriteCond %{HTTP_USER_AGENT} Linguee [OR]
    
    RewriteCond %{HTTP_USER_AGENT} Ezooms [OR]
    
    RewriteCond %{HTTP_USER_AGENT} lwp-trivial [OR]
    
    RewriteCond %{HTTP_USER_AGENT} Purebot [OR]
    
    RewriteCond %{HTTP_USER_AGENT} User-Agent [OR]
    
    RewriteCond %{HTTP_USER_AGENT} kmSearchBot [OR]
    
    RewriteCond %{HTTP_USER_AGENT} SiteBot [OR]
    
    RewriteCond %{HTTP_USER_AGENT} CamontSpider [OR]
    
    RewriteCond %{HTTP_USER_AGENT} ptd-crawler [OR]
    
    RewriteCond %{HTTP_USER_AGENT} HTTrack [OR]
    
    RewriteCond %{HTTP_USER_AGENT} suggybot [OR]
    
    RewriteCond %{HTTP_USER_AGENT} ttCrawler [OR]
    
    RewriteCond %{HTTP_USER_AGENT} Nutch [OR]
    
    RewriteCond %{HTTP_USER_AGENT} Zeus
    
    RewriteRule ^(.*)$ – [F,L]
  2. Ребят, может кто то сталкивался с такой проблемой, у меня все картинки аптимизированы, но почему то в кеш они попадают увеличенные и pagespeed ругается, предлагает скачать оптимизированные фото. Я сравнивал предложенные гуглом фото со своими из оригинальной папки не из кеша, мои даже немного меньше.

  3. 6 минут назад, ikeferi сказал:

    Доброго времени суток!) Подскажите пожалуйста в общих чертах хотя бы, как спарсить товары с сайта постащика без файла с прайслистом. Особенность такая что цены доступны только под учеткой клиента?

    У меня такая же ситуация, я Datacol использую для парсинга, а уж затем модуль. Может есть и проще путь.

×
×
  • Створити...

Important Information

На нашому сайті використовуються файли cookie і відбувається обробка деяких персональних даних користувачів, щоб поліпшити користувальницький інтерфейс. Щоб дізнатися для чого і які персональні дані ми обробляємо перейдіть за посиланням . Якщо Ви натиснете «Я даю згоду», це означає, що Ви розумієте і приймаєте всі умови, зазначені в цьому Повідомленні про конфіденційність.