malina95
Дракула кода:)
Доброй ночи! Я здесь нашёл баг у себя на сайте, и вот в чём он заключается.
При переходе по ссылке http://malinichev.ru/lesson/table-mysql-on-html.html всё прекрассно работает, но и переходя по ссылке http://malinichev.ru/lesson.php?post=table-mysql-on-html тоже статья открывается...
Вы не знаете как такое исправить?
Вот мой файл .htaccess
Помогите пожалуйста
При переходе по ссылке http://malinichev.ru/lesson/table-mysql-on-html.html всё прекрассно работает, но и переходя по ссылке http://malinichev.ru/lesson.php?post=table-mysql-on-html тоже статья открывается...
Вы не знаете как такое исправить?
Вот мой файл .htaccess
PHP:
AddDefaultCharset utf-8
RemoveHandler .xml .html
AddType application/x-httpd-php .php .htm .html .shtml .xml
SetEnv TZ Europe/Kiev
DirectoryIndex index.html index.htm index.php
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
php_value max_execution_time 500
php_value max_input_time 500
php_value upload_max_filesize 30M
php_value post_max_size 30M
ErrorDocument 400 /error.html
ErrorDocument 403 /error.html
ErrorDocument 404 /error.html
ErrorDocument 405 /error.html
ErrorDocument 408 /error.html
ErrorDocument 500 /error.html
ErrorDocument 502 /error.html
ErrorDocument 504 /error.html
Order Allow,Deny
Allow from all
Deny from 208.115.96.0/24
Deny from 208.115.97.0/24
Deny from 208.115.98.0/24
Deny from 208.115.99.0/24
Deny from 208.115.100.0/24
Deny from 208.115.101.0/24
Deny from 208.115.102.0/24
Deny from 208.115.103.0/24
Deny from 208.115.104.0/24
Deny from 208.115.105.0/24
Deny from 208.115.106.0/24
Deny from 208.115.107.0/24
Deny from 208.115.108.0/24
Deny from 208.115.109.0/24
Deny from 208.115.110.0/24
Deny from 208.115.111.0/24
Deny from 208.115.112.0/24
Deny from 208.115.113.0/24
Deny from 208.115.114.0/24
Deny from 208.115.115.0/24
Deny from 208.115.116.0/24
Deny from 208.115.117.0/24
Deny from 208.115.118.0/24
Deny from 208.115.119.0/24
Deny from 208.115.120.0/24
Deny from 208.115.121.0/24
Deny from 208.115.122.0/24
Deny from 208.115.123.0/24
Deny from 208.115.124.0/24
Deny from 208.115.125.0/24
Deny from 208.115.126.0/24
Deny from 208.115.127.0/24
RewriteEngine on
RewriteBase /
RewriteRule ^cat/([a-zA-Z0-9_-]*)\.html$ category.php?cat=$1 [L,QSA]
RewriteRule ^lesson/([[a-zA-Z0-9_-]*)\.html$ lesson.php?post=$1 [L,QSA]
RewriteCond %{HTTP_HOST} ^www.malinichev.ru$ [NC]
RewriteRule ^(.*)$ http://malinichev.ru/$1 [R=301,L]