Към съдържанието

  •  

Оптимизиране на форума


  • Влезте в профила си за да пишете
56 отговора на тази тема

#21 D-rA

D-rA

    Луд умора няма

  • Админи
  • PipPipPip
  • 1095 Мнения:
Уроци

Публикувано 15 June 2013 - 00:51

Хм, аз имам яко фейлове по тия показатели, но иначе скоростта ми на зареждане е почти същата...



оф топик

Извини ме, но би ли си сменил линка в профила, към сайта си :ad:

#22 jair

jair

    Напреднал

  • VIP
  • PipPipPip
  • 126 Мнения:

Публикувано 15 June 2013 - 01:39

оф топик

Извини ме, но би ли си сменил линка в профила, към сайта си :ad:


Готово. Бях го сменил и преди, но при загубите при последния рестор от бекъпа е изчезнал без да усетя.

#23 D-rA

D-rA

    Луд умора няма

  • Админи
  • PipPipPip
  • 1095 Мнения:
Уроци

Публикувано 15 June 2013 - 01:43

Надявам се нямаш против да ползвам rss каналите ти :)

#24 jair

jair

    Напреднал

  • VIP
  • PipPipPip
  • 126 Мнения:

Публикувано 15 June 2013 - 01:52

Надявам се нямаш против да ползвам rss каналите ти :)


Ми...те нали са за това :) Или изпускам нещо след като си говорим за оптимизиране, да не би да товарят? :)

#25 mjelqzkov

mjelqzkov

    Напреднал

  • Потребители
  • PipPipPip
  • 136 Мнения:

Публикувано 15 June 2013 - 12:33

Много често пак получавам 501 error :(.

#26 Silence

Silence

    Напреднал

  • VIP
  • PipPipPip
  • 132 Мнения:
  • IPB версия:3.4
  • Форум URL
  • Град:Хасково/Свиленград
Уроци

Публикувано 15 June 2013 - 13:03

Здравей ....първо свали си htaccess някъде на компютъра за всеки случай.
Копирай го и го редактирай ,като най-долу добави следният ред:
SecFilterEngine  Off
Качи обратно копираният и редактиран файл обратно в директорията .
Това ще се опита да деактивира mod_security.

Надяваме се това решение да ти помогне!

#27 mjelqzkov

mjelqzkov

    Напреднал

  • Потребители
  • PipPipPip
  • 136 Мнения:

Публикувано 15 June 2013 - 13:08

А какво е това mod_security?

#28 Silence

Silence

    Напреднал

  • VIP
  • PipPipPip
  • 132 Мнения:
  • IPB версия:3.4
  • Форум URL
  • Град:Хасково/Свиленград
Уроци

Публикувано 15 June 2013 - 13:16

Mod_security е модул който помага за защита на сайта/форума от различни атаки.

#29 mjelqzkov

mjelqzkov

    Напреднал

  • Потребители
  • PipPipPip
  • 136 Мнения:

Публикувано 15 June 2013 - 13:26

Ми защо трябва да го изключа тогава :D ?

#30 Silence

Silence

    Напреднал

  • VIP
  • PipPipPip
  • 132 Мнения:
  • IPB версия:3.4
  • Форум URL
  • Град:Хасково/Свиленград
Уроци

Публикувано 15 June 2013 - 13:30

Ето оригиналната статия....разбери сам....иначе .htaccess си е добре за защита както го е направил Публикувано изображение D-rA

mod_security is a common cause of 'white screen' errors, and other such oddities in PHP, and consequently, in IPB. Your host is in charge of whether this is active on your hosting account or not, so if it is causing problems for you you can ask them to disable it. Some hosts will, some won't, if you're unlucky enough to have one that won't, here's something you can try.

Look in your forum's root directory, or the public_html directory of your hosting account. If you see a file in there called .htaccess, download the file to your computer. Otherwise, open up Notepad or some other code editing program, and make yourself a new file called .htaccess. Inside this file, or, at the bottom of the existing file's content, add this line:

SecFilterEngine Off
Save the file, and upload it back to the public_html directory. This will attempt to disable mod_security on your account, so you can try the thing that you had problems with again.

Hopefully this solution helps you!



#31 mjelqzkov

mjelqzkov

    Напреднал

  • Потребители
  • PipPipPip
  • 136 Мнения:

Публикувано 15 June 2013 - 13:34

Направих го, но ми излезе ето този еррор:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@ and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

#32 Silence

Silence

    Напреднал

  • VIP
  • PipPipPip
  • 132 Мнения:
  • IPB версия:3.4
  • Форум URL
  • Град:Хасково/Свиленград
Уроци

Публикувано 15 June 2013 - 13:37

Най-често срещаните причини за Internal Server Error 500 са 3:

1. Некоректни права на файлове и директории;
2. Некоректни директиви в .htaccess файл;
3. Скрипт се изпълнява повече от 60 секунди при 100% използване на процесор;

А и нали затова направихме резервни копие на .htaccess файл-а

#33 mjelqzkov

mjelqzkov

    Напреднал

  • Потребители
  • PipPipPip
  • 136 Мнения:

Публикувано 15 June 2013 - 13:40

Ето това ми е .htaccess файла:

<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule \.(jpeg|jpg|gif|png)$ /public/404.php [NC,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]




</IfModule>

<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} .*\.(jpeg|jpg|gif|png)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . /public/404.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
#<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_METHOD} HEAD
RewriteRule .* - [F]
#</IfModule>
#---End_Part2----
#---Start_Part3----
ServerSignature Off
#---End_Part3----
<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 handler ^cgi-script$
mod_gzip_item_include mime ^cache/.*
mod_gzip_item_include mime ^public/.*
mod_gzip_item_exclude mime ^hooks/.*
mod_gzip_item_exclude mime ^uploads/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</ifmodule>
<ifModule mod_headers.c>
# YEAR
<filesMatch ".(ico|gif|jpg|jpeg|png|flv|pdf)$">
Header set Cache-Control "max-age=29030400"
</filesMatch>
# WEEK
<filesMatch ".(js|css|swf)$">
Header set Cache-Control "max-age=604800"
</filesMatch>
# 45 MIN
<filesMatch ".(html|htm|txt)$">
Header set Cache-Control "max-age=2700"
</filesMatch>
</ifModule>
<IfModule mod_headers.c>
<FilesMatch "\.(js|css|xml|gz)$">
Header append Vary: Accept-Encoding
</FilesMatch>
</IfModule>
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault A300
ExpiresByType image/x-icon A2592000
ExpiresByType application/x-javascript A3600
ExpiresByType text/css A3600
ExpiresByType image/gif A604800
ExpiresByType image/png A604800
ExpiresByType image/jpeg A604800
ExpiresByType text/plain A300
ExpiresByType application/x-shockwave-flash A604800
ExpiresByType video/x-flv A604800
ExpiresByType application/pdf A604800
ExpiresByType text/html A300
</ifModule>
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteCond %{HTTP_USER_AGENT} ^MJ12bot [OR]
RewriteCond %{HTTP_USER_AGENT} ^SolomonoBot [OR]
RewriteCond %{HTTP_USER_AGENT} ^Baiduspider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Ezooms [OR]
RewriteCond %{HTTP_USER_AGENT} ^ackej3882 [OR]
RewriteCond %{HTTP_USER_AGENT} ^Yeti [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mail.Ru[OR]
RewriteCond %{HTTP_USER_AGENT} ^Sosospider [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Sogou [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^YoudaoBot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^JikeSpider [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^ScoutJet [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^AhrefsBot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Exabot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^SeznamBot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Butterfly [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^HuaweiSymantecSpider [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^TurnitinBot [NC]
RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE [OR]
RewriteCond %{HTTP_USER_AGENT} ^FlashGet [OR]
RewriteCond %{HTTP_USER_AGENT} ^GetRight [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 [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(.*)msnbot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(.*)bingbot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(.*)MJ12bot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(.*)SolomonoBot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(.*)Yandex [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(.*)bingbot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(.*)Baiduspider [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(.*)Yeti [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(.*)Mail.Ru [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(.*)exabot [NC]
RewriteRule ^.* - [F]
</IfModule>
<Files 403.shtml>
order allow,deny
allow from all
</Files>
<Files *.*>
order allow,deny
deny from 65.55.213.193
deny from 157.54.0.0/15
deny from 157.56.0.0/14
deny from 157.60.0.0/16
deny from 61.135.192.0/18
deny from 77.88.0.0/18
deny from 77.91.224.0/24
deny from 87.250.224.0/19
deny from 92.241.182.0/24
deny from 93.158.128.0/18
deny from 95.108.128.0/17
deny from 119.63.192.0/21
deny from 123.125.64.0/18
deny from 178.154.128.0/17
deny from 180.76.0.0/16
deny from 182.118.0.0/16
deny from 193.47.80.0/24
deny from 213.180.192.0/19
deny from 220.181.0.0/18
deny from 173.199.115.35
deny from 173.199.116.227
deny from 101.226.
allow from all
</Files>


И след като добавих най-отдолу

SecFilterEngine Off

Почна да ми излиза този ерор.

#34 Silence

Silence

    Напреднал

  • VIP
  • PipPipPip
  • 132 Мнения:
  • IPB версия:3.4
  • Форум URL
  • Град:Хасково/Свиленград
Уроци

Публикувано 15 June 2013 - 13:42

Сложи .htaccess файл-а на Публикувано изображение D-rA . Аз съм с него и проблеми нямам

#---Start_Part1----
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
#---End_Part1----
#---Start_Part2----
#<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_METHOD} HEAD
RewriteRule .* - [F]
#</IfModule>
#---End_Part2----
#---Start_Part3----
ServerSignature Off
#---End_Part3----
#---Start_Part4----
#<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 12400 minutes"
ExpiresByType text/html "access plus 12400 minutes"
ExpiresByType image/gif "access plus 14400 minutes"
ExpiresByType image/jpg "access plus 14400 minutes"
ExpiresByType image/jpeg "access plus 14400 minutes"
ExpiresByType image/png "access plus 14400 minutes"
ExpiresByType text/css "access plus 12400 minutes"
ExpiresByType text/javascript "access plus 14400 minutes"
ExpiresByType application/x-javascript "access plus 14400 minutes"
ExpiresByType text/xml "access plus 12400 minutes"
#</IfModule>
#---End_Part4----
#get rid of bad bots
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^MJ12bot [OR]
RewriteCond %{HTTP_USER_AGENT} ^Yandex [OR]
RewriteCond %{HTTP_USER_AGENT} ^NaverBot
RewriteRule ^(.*)$ http://go.away/


#35 mjelqzkov

mjelqzkov

    Напреднал

  • Потребители
  • PipPipPip
  • 136 Мнения:

Публикувано 15 June 2013 - 13:44

С него съм, обаче пак имам проблеми :

<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule \.(jpeg|jpg|gif|png)$ /public/404.php [NC,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]




</IfModule>

#---Start_Part1----
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
#---End_Part1----
#---Start_Part2----
#<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_METHOD} HEAD
RewriteRule .* - [F]
#</IfModule>
#---End_Part2----
#---Start_Part3----
ServerSignature Off
#---End_Part3----
#---Start_Part4----
#<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 12400 minutes"
ExpiresByType text/html "access plus 12400 minutes"
ExpiresByType image/gif "access plus 14400 minutes"
ExpiresByType image/jpg "access plus 14400 minutes"
ExpiresByType image/jpeg "access plus 14400 minutes"
ExpiresByType image/png "access plus 14400 minutes"
ExpiresByType text/css "access plus 12400 minutes"
ExpiresByType text/javascript "access plus 14400 minutes"
ExpiresByType application/x-javascript "access plus 14400 minutes"
ExpiresByType text/xml "access plus 12400 minutes"
#</IfModule>
#---End_Part4----
#get rid of bad bots
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^MJ12bot [OR]
RewriteCond %{HTTP_USER_AGENT} ^Yandex [OR]
RewriteCond %{HTTP_USER_AGENT} ^NaverBot
RewriteRule ^(.*)$ http://go.away/

SecFilterEngine Off



#36 Silence

Silence

    Напреднал

  • VIP
  • PipPipPip
  • 132 Мнения:
  • IPB версия:3.4
  • Форум URL
  • Град:Хасково/Свиленград
Уроци

Публикувано 15 June 2013 - 13:46

Махни долният ред и всичко горе до #---Start_Part1----

Смени го с този както е по-горе

#37 mjelqzkov

mjelqzkov

    Напреднал

  • Потребители
  • PipPipPip
  • 136 Мнения:

Публикувано 15 June 2013 - 14:25

Нещо не успях да те разбера :rolleyes: .

#38 Silence

Silence

    Напреднал

  • VIP
  • PipPipPip
  • 132 Мнения:
  • IPB версия:3.4
  • Форум URL
  • Град:Хасково/Свиленград
Уроци

Публикувано 15 June 2013 - 14:26

Махни твоя файл и сложи този без да го променяш :
#---Start_Part1----
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
#---End_Part1----
#---Start_Part2----
#<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_METHOD} HEAD
RewriteRule .* - [F]
#</IfModule>
#---End_Part2----
#---Start_Part3----
ServerSignature Off
#---End_Part3----
#---Start_Part4----
#<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 12400 minutes"
ExpiresByType text/html "access plus 12400 minutes"
ExpiresByType image/gif "access plus 14400 minutes"
ExpiresByType image/jpg "access plus 14400 minutes"
ExpiresByType image/jpeg "access plus 14400 minutes"
ExpiresByType image/png "access plus 14400 minutes"
ExpiresByType text/css "access plus 12400 minutes"
ExpiresByType text/javascript "access plus 14400 minutes"
ExpiresByType application/x-javascript "access plus 14400 minutes"
ExpiresByType text/xml "access plus 12400 minutes"
#</IfModule>
#---End_Part4----
#get rid of bad bots
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^MJ12bot [OR]
RewriteCond %{HTTP_USER_AGENT} ^Yandex [OR]
RewriteCond %{HTTP_USER_AGENT} ^NaverBot
RewriteRule ^(.*)$ http://go.away/


#39 mjelqzkov

mjelqzkov

    Напреднал

  • Потребители
  • PipPipPip
  • 136 Мнения:

Публикувано 15 June 2013 - 14:33

Готово !

#40 D-rA

D-rA

    Луд умора няма

  • Админи
  • PipPipPip
  • 1095 Мнения:
Уроци

Публикувано 20 June 2013 - 11:21

SEO се оказа любопитна играчка - ето моя резултат. :ad:


1 потребител(и) четат тази тема

0 потребители, 1 гости, 0 анонимни