• Прошу и еще раз спрошу. Включил латиницу, все (вроде) нормально с УРЛАМИ и ссылками. Вдруг обнаружил, что старые (еще имена в урл НА КИРИЛИЦЕ) ссылки не работают…
    Я об этом ранее уже спрашивал, думал, что настроил и все учел. Но…
    Спашивал у хостера, они не дают советов… и нет ответов…
    Прошу знатоков поправить и меня, и мой файл (ничего кроме копи-паст я не умею, увы)
    Ниже мой htaccess файл:

    # BEGIN WP Performance Score Booster Settings
    
    ## BEGIN Enable GZIP Compression ##
    <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript
    AddOutputFilterByType DEFLATE application/x-httpd-php
    AddOutputFilterByType DEFLATE application/x-httpd-fastphp
    AddOutputFilterByType DEFLATE image/svg+xml
    SetOutputFilter DEFLATE
    </IfModule>
    ## END Enable GZIP Compression ##
    
    ## BEGIN Vary: Accept-Encoding Header ##
    <IfModule mod_headers.c>
    <FilesMatch "\.(js|css|xml|gz)$">
    Header append Vary: Accept-Encoding
    </FilesMatch>
    </IfModule>
    ## END Vary: Accept-Encoding Header ##
    
    ## BEGIN Expires Caching (Leverage Browser Caching) ##
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg "access 2 week"
    ExpiresByType image/jpeg "access 2 week"
    ExpiresByType image/gif "access 2 week"
    ExpiresByType image/png "access 2 week"
    ExpiresByType text/css "access 2 week"
    ExpiresByType application/pdf "access 2 week"
    ExpiresByType text/x-javascript "access 2 week"
    ExpiresByType application/x-shockwave-flash "access 2 week"
    ExpiresByType image/x-icon "access 2 week"
    ExpiresDefault "access 2 week"
    </IfModule>
    ## END Expires Caching (Leverage Browser Caching) ##
    
    # END WP Performance Score Booster Settings
    # GZip Ninja Speed -- Starts here
    # Do not write anything between "GZip Ninja Speed -- Starts" and "GZip Ninja Speed -- Ends"
    # It will be deleted while uninstalling GZip Ninja Speed plugin
    AddOutputFilterByType DEFLATE text/plain #GZip Ninja Speed
    AddOutputFilterByType DEFLATE text/html #GZip Ninja Speed
    AddOutputFilterByType DEFLATE text/xml #GZip Ninja Speed
    AddOutputFilterByType DEFLATE text/css #GZip Ninja Speed
    AddOutputFilterByType DEFLATE application/xml #GZip Ninja Speed
    AddOutputFilterByType DEFLATE application/xhtml+xml #GZip Ninja Speed
    AddOutputFilterByType DEFLATE application/rss+xml #GZip Ninja Speed
    AddOutputFilterByType DEFLATE application/javascript #GZip Ninja Speed
    AddOutputFilterByType DEFLATE application/x-javascript #GZip Ninja Speed
    AddType x-font/otf .otf #GZip Ninja Speed
    AddType x-font/ttf .ttf #GZip Ninja Speed
    AddType x-font/eot .eot #GZip Ninja Speed
    AddType x-font/woff .woff #GZip Ninja Speed
    AddType image/x-icon .ico #GZip Ninja Speed
    AddType image/png .png #GZip Ninja Speed
    # GZip Ninja Speed -- Ends here
    
    # BEGIN WPSuperCache
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    #If you serve pages from behind a proxy you may want to change 'RewriteCond %{HTTPS} on' to something more sensible
    AddDefaultCharset UTF-8
    RewriteCond %{REQUEST_METHOD} !POST
    RewriteCond %{QUERY_STRING} !.*=.*
    RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
    RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]
    RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
    RewriteCond %{HTTP:Accept-Encoding} gzip
    RewriteCond %{HTTPS} on
    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{SERVER_NAME}/$1/index-https.html.gz -f
    RewriteRule ^(.*) "/wp-content/cache/supercache/%{SERVER_NAME}/$1/index-https.html.gz" [L]
    
    RewriteCond %{REQUEST_METHOD} !POST
    RewriteCond %{QUERY_STRING} !.*=.*
    RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
    RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]
    RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
    RewriteCond %{HTTP:Accept-Encoding} gzip
    RewriteCond %{HTTPS} !on
    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{SERVER_NAME}/$1/index.html.gz -f
    RewriteRule ^(.*) "/wp-content/cache/supercache/%{SERVER_NAME}/$1/index.html.gz" [L]
    
    RewriteCond %{REQUEST_METHOD} !POST
    RewriteCond %{QUERY_STRING} !.*=.*
    RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
    RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]
    RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
    RewriteCond %{HTTPS} on
    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{SERVER_NAME}/$1/index-https.html -f
    RewriteRule ^(.*) "/wp-content/cache/supercache/%{SERVER_NAME}/$1/index-https.html" [L]
    
    RewriteCond %{REQUEST_METHOD} !POST
    RewriteCond %{QUERY_STRING} !.*=.*
    RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
    RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]
    RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
    RewriteCond %{HTTPS} !on
    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{SERVER_NAME}/$1/index.html -f
    RewriteRule ^(.*) "/wp-content/cache/supercache/%{SERVER_NAME}/$1/index.html" [L]
    </IfModule>
    
    # END WPSuperCache
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

Просмотр 7 ответов — с 1 по 7 (всего 7)
Просмотр 7 ответов — с 1 по 7 (всего 7)
  • Тема «Что не так? Редирект в htaccess: ссылки рус/лат» закрыта для новых ответов.