Answer the question
In order to leave comments, you need to log in
What could be the reasons why .htaccess ignores absolutely all of my commands?
Or is there an error in the directives somewhere? I've been messing around for half a day and I can't figure out what's wrong. Maybe it's because the server is on nginx and it doesn't care about the Apache htaccess, although there is supposed to be a module there to translate the .htaccess directives into the nginx language, or do I not understand anything at all? The site is on MODx, and there is an access to MODx Soviet. Maybe he doesn't take directives?
I just broke my head.
Here is the full .htaccess code (already changed):
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.pochin\.ru
RewriteRule ^(.*)$ http://pochin.ru/$1 [R=permanent,L]
RewriteCond %{HTTP_HOST} pochincover.ru
RewriteRule (.*) http://pochin.ru/$1 [R=301,L]
# For full documentation and other suggested options, please see
# http://svn.modxcms.com/docs/display/MODx096/Friendly+URL+Solutions
# including for unexpected logouts in multi-server/cloud environments
# and especially for the first three commented out rules
#php_flag register_globals Off
AddDefaultCharset utf-8
#php_value date.timezone Europe/Moscow
# Fix Apache internal dummy connections from breaking [(site_url)] cache
RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
RewriteRule .* - [F,L]
# Rewrite domain.com -> www.domain.com -- used with SEO Strict URLs plugin
#RewriteCond %{HTTP_HOST} .
#RewriteCond %{HTTP_HOST} !^www\.example\.com [NC]
#RewriteRule (.*) http://www.example.com/$1 [R=301,L]
# Exclude /assets and /manager directories and images from rewrite rules
RewriteRule ^(manager|assets)/*$ - [L]
RewriteRule \.(jpg|jpeg|png|gif|ico)$ - [L]
# For Friendly URLs
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
# Reduce server overhead by enabling output compression if supported.
#php_flag zlib.output_compression On
#php_value zlib.output_compression_level 5
#php_value display_errors On
#AddHandler php-script .php
#Action php-script /cgi-bin/php
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question