Вот файл .htaccess:
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteCond %{SERVER_PORT} !^443$
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
#Don't favicon!
RewriteCond %{REQUEST_FILENAME} !^favicon\.ico
# Fix Apache internal dummy connections from breaking [(site_url)] cache
RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
RewriteRule .* - [F,L]
# Rewrite www.domain.com -> domain.com -- used with SEO Strict URLs plugin
RewriteCond %{HTTP_HOST} ^www\.visavisa\.by$ [NC]
RewriteRule ^.*$ http://visavisa.by/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://%{HTTP_HOST}/ [R=301,L]
php_flag zlib.output_compression On
php_value zlib.output_compression_level 5
# The following directives stop screen flicker in IE on CSS rollovers. If
# needed, un-comment the following rules. When they're in place, you may have
# to do a force-refresh in order to see changes in your designs.
# Fonts
# Add correct content-type for fonts
AddType application/vnd.ms-fontobject .eot
AddType application/x-font-ttf .ttf
AddType application/x-font-opentype .otf
AddType application/x-font-woff .woff
AddType font/woff .woff
AddType image/svg+xml .svg
# Compress compressible fonts
# only uncomment if you dont have compression turned on already. Otherwise it will cause all other filestypes not to get compressed
# AddOutputFilterByType DEFLATE application/x-font-ttf application/x-font-opentype image/svg+xml
ExpiresActive On
# Add a far future Expires header for fonts
ExpiresByType application/vnd.ms-fontobject "access plus 1 years"
ExpiresByType application/x-font-ttf "access plus 1 years"
ExpiresByType application/x-font-opentype "access plus 1 years"
ExpiresByType application/x-font-woff "access plus 1 years"
ExpiresByType font/truetype "access plus 1 years"
ExpiresByType font/opentype "access plus 1 years"
ExpiresByType font/woff "access plus 1 years"
ExpiresByType image/svg+xml "access plus 1 years"
ExpiresByType image/gif A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/png A2592000
ExpiresByType text/js "access plus 1 years"
ExpiresByType text/javascript "access plus 1 years"
ExpiresByType application/javascript "access plus 1 years"
ExpiresByType application/x-javascript "access plus 1 years"
ExpiresByType text/css "access plus 1 years"
BrowserMatch "MSIE" brokenvary=1
BrowserMatch "Mozilla/4.[0-9]{2}" brokenvary=1
BrowserMatch "Opera" !brokenvary
SetEnvIf brokenvary 1 force-no-vary
Все работает, но адреса в адресной строке отображаются в виде visavisa.by/index.php?q=about.html
Дмитрий 11.02.2017 12:58 #
RewriteCond %{HTTP_HOST} ^www\.visavisa\.by$ [NC]
RewriteRule ^.*$ visavisa.by/$1 [R=301,L]
#RewriteCond %{SERVER_PORT} !^443
#RewriteRule (.*) visavisa.by/$1 [R=301,L]
Дмитрий 11.02.2017 16:35 #
Это без двух последних закоментированных строк.
Если с этими строками, то проблема остается прежней
Дмитрий 11.02.2017 18:27 #
Дмитрий 11.02.2017 18:57 #