Skip to content

Instantly share code, notes, and snippets.

@artpolikarpov
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save artpolikarpov/109ea9db575c6b5c21e2 to your computer and use it in GitHub Desktop.
Save artpolikarpov/109ea9db575c6b5c21e2 to your computer and use it in GitHub Desktop.
Аварийный .htaccess для Эгеи 2.4
DirectoryIndex index.php
ErrorDocument 404 "Looks like mod_rewrite does not work. Please set url_composition to 'real' in user/config.php then go to .../?go=@sync and then back to front page of your blog."
Options -Indexes -MultiViews +FollowSymLinks
<IfModule mod_rewrite.c>
RewriteEngine On
# Next lines fix mod_rewrite's trailing slash bug
#RewriteCond %{REQUEST_FILENAME} -d
#RewriteCond %{REQUEST_URI} (.*)
#RewriteRule (.+)[^/] %1/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^ - [L]
RewriteRule ^index\.php$ - [L]
RewriteRule .* index.php?go=$0 [QSA,L]
</IfModule>
<IfModule mod_security.c>
SecFilterEngine Off
</IfModule>
<IfModule mod_charset.c>
CharsetRecodeMultipartForms Off
CharsetSourceEnc windows-1251
</IfModule>
<IfModule mod_php4.c>
php_flag display_errors on
php_flag register_globals off
php_flag magic_quotes_gpc off
php_flag magic_quotes_runtime off
php_flag zlib.output_compression on
php_flag short_open_tag on
php_flag mbstring.func_overload off
php_value error_reporting 7
php_value output_buffering 0
php_value session.use_trans_sid 0
</IfModule>
<IfModule mod_php5.c>
php_flag display_errors on
php_flag register_globals off
php_flag magic_quotes_gpc off
php_flag magic_quotes_runtime off
php_flag zlib.output_compression on
php_flag short_open_tag on
php_flag mbstring.func_overload off
php_value output_buffering 0
php_value error_reporting 7
php_value session.use_trans_sid 0
php_value date.timezone GMT
</IfModule>
<FilesMatch ^.*\.(psa|sql)$>
Deny from all
</FilesMatch>
@artpolikarpov
Copy link
Author

Если проблемы возникли при установке с нуля, нужно положить этот файл на место /system/default/default.htaccess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment