A
A
ApolloHoTs2019-08-31 13:48:33
HTML
ApolloHoTs, 2019-08-31 13:48:33

Long loading of the site, what could be the reason?

Hello.
We have a subdomain with a self-written site: m.hotel-mirage.ru (in the mobile version of the problem!)
The site is self-written, the code is obfuscated. Without .htaccess does not want to work for example, but this is not the problem itself. He is 1000 years old at lunchtime.
The site itself was created on the hosting: m.hotelmirage.ru . Synonyms: www.m.hotelmirage.ru and m.hotel-mirage.ru, but the Synonym www.m.hotel-mirage.ru does NOT want to be added, writes an error when adding, maybe this is a mistake? Hosting on nic.ru. Other domains are created on the same self-written engine according to the same principle and work fine (open quickly), only there Synonym with www. there is.
If you follow the Synonym www.m.hotel-mirage.ru, which does NOT want to be added, they will write that they say there is no site ...
Everything worked well until recently. Began to open about 1-2 minutes. If opened once, then it will open instantly on the same computer. It is necessary that it opens normally for the first time, and not 1-2 minutes ...
Can anyone help point out a clear problem?
Actually, if you need the .htaccess code:

spoiler
DirectoryIndex sm.php index.php index.html
Options -Indexes

<Files ~ "(^\.htaccess)|(^\.htpasswd)|(^MSOffice)|(^_vti_bin)">
    Order allow,deny
    Deny from all
</Files>

AddType application/octet-stream .ttf .eot
AddHandler application/x-httpd-php .htm .html
AddType application/x-httpd-php .htm .html
AddType application/x-7z-compressed .7z
AddType application/x-rar-compressed .rar
AddType image/x-icon .ico

RemoveHandler cgi-script .pl .py .cgi

php_flag safe_mode On
php_flag display_errors Off 
php_flag expose_php Off 
php_flag session.use_trans_sid Off
php_flag register_globals Off
php_value max_execution_time 30
php_value max_input_time 30
php_value default_charset "windows-1251"
php_value upload_max_filesize "1M"
php_value post_max_size "1M"


RewriteEngine on 

ReWriteCond %{HTTPS} on 
RewriteRule .* http://%{HTTP_HOST}%{REQUEST_URI} [QSA,R=301,L] 

RewriteCond   %{HTTP_REFERER}     d\-free\.ru [OR,NC]
RewriteCond   %{HTTP_REFERER}     ischem\.ru  [OR,NC]
RewriteCond   %{HTTP_REFERER}     win\-sky\.ru  [OR,NC]
RewriteCond   %{HTTP_REFERER}     zoll\.ru  [OR,NC]
RewriteCond   %{HTTP_REFERER}     morgue\.ru  [OR,NC]
RewriteCond   %{HTTP_REFERER}     walther\.ru [OR,NC]
RewriteCond   %{HTTP_REFERER}     spamer\.in  [OR,NC]
RewriteCond   %{REQUEST_URI}      .*admin.* [OR,NC]
RewriteCond   %{REQUEST_URI}      .*phpbb.* [OR,NC]
RewriteCond   %{REQUEST_URI}      .*mysql.* [OR,NC]
RewriteCond   %{REQUEST_URI}      .*rpc.*   [OR,NC]
RewriteCond   %{REQUEST_URI}      .*orum.*  [OR,NC]
RewriteCond   %{REQUEST_URI}      .*board.* [OR,NC]
RewriteCond   %{REQUEST_URI}      \.cgi$    [OR,NC]
RewriteCond   %{REQUEST_URI}      \.pl$   [OR,NC]
RewriteCond   %{REQUEST_URI}      .*awstats.* [OR,NC]
RewriteCond   %{REQUEST_URI}      .*cpanel.*  [OR,NC]
RewriteCond   %{REQUEST_URI}      .*ispmgr.*  [OR,NC]
RewriteCond   %{HTTP_HOST}      ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$  [OR,NC]
RewriteCond   %{HTTP_HOST}      forum\.   [OR,NC]
RewriteCond   %{HTTP_HOST}      ^$
RewriteRule .*$     -             [F]

RewriteCond %{HTTP_USER_AGENT} ^Missigua\ Locator [OR] 
RewriteCond %{HTTP_USER_AGENT} ^BlackWidow      [OR]
RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw     [OR]
RewriteCond %{HTTP_USER_AGENT} ^Custo       [OR]
RewriteCond %{HTTP_USER_AGENT} ^DISCo       [OR]
RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon   [OR]
RewriteCond %{HTTP_USER_AGENT} ^Drip.*        [OR]
RewriteCond %{HTTP_USER_AGENT} ^eCatch        [OR]
RewriteCond %{HTTP_USER_AGENT} ^EirGrabber      [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon     [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailWolf     [OR]
RewriteCond %{HTTP_USER_AGENT} ^Express\ WebPictures  [OR]
RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro    [OR]
RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE      [OR]
RewriteCond %{HTTP_USER_AGENT} ^FlashGet      [OR]
RewriteCond %{HTTP_USER_AGENT} ^GetRight      [OR]
RewriteCond %{HTTP_USER_AGENT} ^Gets.*        [OR]
RewriteCond %{HTTP_USER_AGENT} ^GetWeb!       [OR]
RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla      [OR]
RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It   [OR]
RewriteCond %{HTTP_USER_AGENT} ^GrabNet       [OR]
RewriteCond %{HTTP_USER_AGENT} ^Grafula       [OR]
RewriteCond %{HTTP_USER_AGENT} ^HMView        [OR]
RewriteCond %{HTTP_USER_AGENT} ^HTTrack       [OR]
RewriteCond %{HTTP_USER_AGENT} ^ia_archiver.*   [OR]
RewriteCond %{HTTP_USER_AGENT} ^IBrowse.*     [OR]
RewriteCond %{HTTP_USER_AGENT} ^Image\ Stripper   [OR]
RewriteCond %{HTTP_USER_AGENT} ^Image\ Sucker   [OR]
RewriteCond %{HTTP_USER_AGENT} ^Indy\ Library   [OR]
RewriteCond %{HTTP_USER_AGENT} ^InterGET      [OR]
RewriteCond %{HTTP_USER_AGENT} ^Internet\ Ninja   [OR]
RewriteCond %{HTTP_USER_AGENT} ^JetCar        [OR]
RewriteCond %{HTTP_USER_AGENT} ^JOC\ Web\ Spider  [OR]
RewriteCond %{HTTP_USER_AGENT} ^JustView.*      [OR]
RewriteCond %{HTTP_USER_AGENT} ^larbin        [OR]
RewriteCond %{HTTP_USER_AGENT} ^LeechFTP      [OR]
RewriteCond %{HTTP_USER_AGENT} ^lftp.*        [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mass\ Downloader  [OR]
RewriteCond %{HTTP_USER_AGENT} ^Microsoft-WebDAV.*  [OR]
RewriteCond %{HTTP_USER_AGENT} ^MIDown\ tool    [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mister\ PiX     [OR]
RewriteCond %{HTTP_USER_AGENT} ^Navroad       [OR]
RewriteCond %{HTTP_USER_AGENT} ^NearSite      [OR]
RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire    [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetAnts       [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetSpider     [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetZIP        [OR]
RewriteCond %{HTTP_USER_AGENT} ^Octopus       [OR]
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Explorer [OR]
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Navigator  [OR]
RewriteCond %{HTTP_USER_AGENT} ^PageGrabber     [OR]
RewriteCond %{HTTP_USER_AGENT} ^Papa\ Foto      [OR]
RewriteCond %{HTTP_USER_AGENT} ^pavuk       [OR]
RewriteCond %{HTTP_USER_AGENT} ^pcBrowser     [OR]
RewriteCond %{HTTP_USER_AGENT} ^Pockey.*      [OR]
RewriteCond %{HTTP_USER_AGENT} ^RealDownload    [OR]
RewriteCond %{HTTP_USER_AGENT} ^ReGet       [OR]
RewriteCond %{HTTP_USER_AGENT} ^SiteSnagger     [OR]
RewriteCond %{HTTP_USER_AGENT} ^Slurp.*       [OR]
RewriteCond %{HTTP_USER_AGENT} ^SmartDownload   [OR]
RewriteCond %{HTTP_USER_AGENT} ^SpaceBison.*    [OR]
RewriteCond %{HTTP_USER_AGENT} ^SuperBot      [OR]
RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP     [OR]
RewriteCond %{HTTP_USER_AGENT} ^Surfbot       [OR]
RewriteCond %{HTTP_USER_AGENT} ^tAkeOut       [OR]
RewriteCond %{HTTP_USER_AGENT} ^Teleport      [OR]
RewriteCond %{HTTP_USER_AGENT} ^VoidEYE       [OR]
RewriteCond %{HTTP_USER_AGENT} ^Web\ Image\ Collector [OR]
RewriteCond %{HTTP_USER_AGENT} ^Web\ Sucker     [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebAuto       [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebCopier     [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebFetch      [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebGo\ IS     [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebLeacher      [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebReaper     [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebSauger     [OR]
RewriteCond %{HTTP_USER_AGENT} ^Website\ eXtractor  [OR]
RewriteCond %{HTTP_USER_AGENT} ^Website\ Quester  [OR]
RewriteCond %{HTTP_USER_AGENT} ^Webster.*     [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebStripper     [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebWhacker      [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebZIP        [OR]
RewriteCond %{HTTP_USER_AGENT} ^Wget        [OR]
RewriteCond %{HTTP_USER_AGENT} ^Widow       [OR]
RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE      [OR]
RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Zeus
RewriteRule ^ - [F]

RewriteRule !\.(yml|mp4|ogv|webm|zip|mid|wav|doc|rtf|ppt|htc|mp3|wmv|rar|tgz|gz|bz2|eot|7z|jar|xml)$ sm.php [NC,L]

ErrorDocument 403 /sm.php
ErrorDocument 404 /sm.php

<IfModule mod_expires.c>
  ExpiresActive on
  ExpiresByType image/x-icon "access plus 1 month"
  ExpiresByType image/jpeg "access plus 3 day"
  ExpiresByType image/gif "access plus 3 day"
  ExpiresByType image/png "access plus 3 day"
  ExpiresByType application/pdf "access plus 3 day"
  ExpiresByType text/plain  "access plus 3 day" 
  ExpiresByType text/css A17200
  ExpiresByType text/javascript "access plus 3 day"
  ExpiresByType application/x-javascript "access plus 3 day"
  ExpiresByType application/x-shockwave-flash "access plus 3 day" 
  ExpiresByType video/x-flv "access plus 3 day"
</IfModule>

<ifModule mod_headers.c>
<filesMatch ".(ico|pdf|flv|jpg|jpeg|png|gif|swf|bmp)$">
  Header set Cache-Control "max-age=604800, public"
</filesMatch>
<filesMatch ".(css|js)$">
  Header set Cache-Control "max-age=604800, public"
</filesMatch>

<filesMatch ".(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
  Header unset ETag
  FileETag None
</filesMatch>
</ifModule>

<IfModule mod_gzip.c>      
      mod_gzip_on Yes
      mod_gzip_min_http 1001
      mod_gzip_dechunk Yes
      mod_gzip_minimum_file_size 1002
      mod_gzip_maximum_inmem_size 1000000
      mod_gzip_keep_workfiles No
      mod_gzip_item_include file \.shtml$
      mod_gzip_item_include file \.php$
      mod_gzip_item_include file \.html$
      mod_gzip_item_include file \.htm$
      mod_gzip_item_include file \.css$
      mod_gzip_item_include file \.js$
</IfModule>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question