Kylaksizov/apps-system/master/.htaccess - Htaccess File

Kylaksizov/apps-system/master/.htaccess

AddDefaultCharset utf-8

### ADMIN PUBLIC ###

DirectoryIndex index.php

# страницы ошибок
ErrorDocument 403 /403.html
ErrorDocument 404 /404.html

# запрет листинга каталога
# Options -Indexes

# ЧПУ
RewriteEngine On
# Options +FollowSymLinks - отключено!

# если запрешеной папки или файла не существует
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^(.*)/$ index.php?param=$1 [L,QSA]
RewriteRule ^(.*).html(?.*)?$ index.php?html=$1 [L,QSA]

#RewriteRule ^registration.html$ index.php?reg=tyes [L,QSA] # с параметрами

#RewriteRule ^([a-z0-9-]+)/?$ index.php?extension=$1 [L] #расширение
#RewriteRule ^([a-z0-9-]+)/([a-z0-9-]+)/?$ index.php?extension=$1&action=$2 [L]

# @source http://myrusakov.ru/php-load-bigfile.html

#php_value max_execution_time 5000
#php_value max_input_time 5000
#php_value upload_max_filesize 30M
#php_value post_max_size 30M

# ОТЛАДКА
#php_value error_reporting 7

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache