Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Posts posted by cema93

  1. В интернете только что вычитал тто надо сделать так 

    IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
    RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    Это поможет, не знаете?

  2. Есть сайт  на WP

    в нем есть файл .htaccess с содержимым

    DefaultLanguage ru
    AddDefaultCharset UTF-8
    php_value default_charset "UTF-8"
    # Сжатие текста и изображений мощностями сервера
    SetInputFilter DEFLATE
    SetOutputFilter DEFLATE
    AddOutputFilterByType DEFLATE text/* image/*
    AddOutputFilterByType DEFLATE application/x-javascript
    AddOutputFilterByType DEFLATE application/ms* application/vnd* application/postscript
    <IfModule mod_deflate.c>
        #The following line is enough for .js and .css
        AddOutputFilter DEFLATE js css
        #The following line also enables compression by file content type, for the following list of Content-Type:s
        AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml
        #The following lines are to avoid bugs with some browsers
        BrowserMatch ^Mozilla/4 gzip-only-text/html
        BrowserMatch ^Mozilla/4\.0[678] no-gzip
        BrowserMatch \bMSIE !no-gzip !gzip-only-text/html 
    <IfModule mod_expires.c>
    	ExpiresActive on
    	ExpiresDefault "access plus 2 seconds"
    	# cache.appcache needs re-requests in FF 3.6 (thanks Remy ~Introducing HTML5)
    	ExpiresByType text/cache-manifest "access plus 0 seconds"
    	# html
    	ExpiresByType text/html "access plus 2 seconds"
    	# XML
    	ExpiresByType text/xml "access plus 0 seconds"
    	ExpiresByType application/xml "aaccess plus 2 seconds"
    	# RSS
    	ExpiresByType application/rss+xml "access plus 2 seconds"
    	# Favicon
    	ExpiresByType image/x-icon "access plus 2 seconds"
    	# Картинки
    	ExpiresByType image/gif "access plus 2 seconds"
    	ExpiresByType image/png "access plus 2 seconds"
    	ExpiresByType image/jpeg "access plus 2 seconds"
    	ExpiresByType image/jpg "access plus 2 seconds"
    	# HTC файлы  (например css3pie)
    	ExpiresByType text/x-component "access plus 2 seconds"
    	# Нестандартные шрифты сайта
    	ExpiresByType application/x-font-ttf "access plus 2 seconds"
    	ExpiresByType font/opentype "access plus 2 seconds"
    	ExpiresByType application/x-font-woff "access plus 2 seconds"
    	ExpiresByType image/svg+xml "access plus 2 seconds"
    	ExpiresByType application/vnd.ms-fontobject "access plus 2 seconds"
    	# CSS и javascript
    	ExpiresByType text/css "access plus 2 seconds"
    	ExpiresByType application/javascript "access plus 2 seconds"
    # Cache-Control браузера 
    <ifModule mod_headers.c>
    	# 300 дней
    	<filesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|swf)$">
    	Header set Cache-Control "max-age=2, public"
    	# 30 дней
    	<FilesMatch "\.(js|css|xml|gz)$">
        Header append Vary: Accept-Encoding
    	# 20 дня
    	<filesMatch "\.(xml|txt)$">
    	Header set Cache-Control "max-age=2, public, must-revalidate"
    	# 1 день
    	<filesMatch "\.(html|htm)$">
    	Header set Cache-Control "max-age=2, private, must-revalidate"
    <IfModule mod_setenvif.c>
    	#Эта конструкция для говнобраузера
    	#Запрет отдачи HTTP-заголовков Vary
    	BrowserMatch "MSIE" force-no-vary
    	BrowserMatch "Mozilla/4.[0-9]{2}" force-no-vary
    <Files wp-config.php>
     order allow,deny
     deny from all
    #Мои файлы только на моем блоге Replace ?mysite\.com/ with your blog url
    RewriteCond %{HTTP_REFERER} !^http://(.+\.)?zapraudu\.info/ [NC]
    RewriteCond %{HTTP_REFERER} !^$
    #Replace /images/nohotlink.jpg with your "don't hotlink" image url
    RewriteRule .*\.(jpe?g|gif|bmp|png)$ /wp-content/images/nohotlink.jpg [L]
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
    RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    # END WordPress

    В логах php стали появляться строки 

    [Wed Jun 26 19:46:00 2013] [error] [client] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://www.google.ru/blank.html

    Можете ли вы мне помочь решить проблему чтобы данная ошибка не появлялась?

  • Create New...