Перейти к содержанию

alex380

Новичок
  • Публикаций

    12
  • Зарегистрирован

  • Посещение

Репутация

0 Обычный

Информация о alex380

  • Звание
    Пользователь

Посетители профиля

Блок последних пользователей отключён и не показывается другим пользователям.

  1. Там кроме ## Блокировка по USER AGENT: вроде всё нужное
  2. Да так и оказалось, причина была другая
  3. Ошибаетесь, я его по кусочкам собирал.
  4. Была большая нагрузка на сервер, исправлял как мог.
  5. Здравствуйте, после настройки файла 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]
  6. Ребят, может кто то сталкивался с такой проблемой, у меня все картинки аптимизированы, но почему то в кеш они попадают увеличенные и pagespeed ругается, предлагает скачать оптимизированные фото. Я сравнивал предложенные гуглом фото со своими из оригинальной папки не из кеша, мои даже немного меньше.
×