我遇到了这个奇怪的问题。以下网址通过授予“禁止访问”来破坏我的网站。您无权访问此服务器上的/。错误: http://www.example.com/q?=11223-222-323dd-3232-dd44
但是,如果我删除一个短划线 http://www.example.com/q?=11223-222-323dd-3232 有用!基本上,URL中的四个破折号打破了网站,其中三个仍然可以。什么可能导致这个?
这就是我的.htaccess的样子
RewriteEngine on
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
php_value docref_root 1
php_value docref_ext 1
php_value error_reporting 1
#php_value error_reporting 1
php_flag log_errors on
#php_value error_log /var/logs/php_error_logs/casino_live.log
php_flag magic_quotes_gpc off
php_value register_globals 0
php_value session.auto_start 0
php_value session.cookie_lifetime 604800
php_value session.gc_maxlifetime 604800
php_value session.cache_expire 200000
php_value session.use_only_cookies 1
php_value session.use_trans_sid 0
RewriteCond %{QUERY_STRING} ^PHPSESSID=.*$
RewriteRule ^(.*)$ %{REQUEST_URI}? [L,R=301]
AddType text/x-component .htc
RewriteRule ^robots.txt robots.php
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond $1 !/example.com/(.*)$
RewriteCond $1 !^/index.php/ [NC]
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond $1 ^/example.com/(.*)$
RewriteCond $1 !^/example.com/index.php/ [NC]
RewriteRule ^(.*)$ /example.com/index.php/$1 [L]
RewriteCond %{HTTP_HOST} ^www.example.com|example.com$
RewriteRule ^lobby/(.*)$ http://www.example.com/lobby/$1 [R=301]
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ https://www.example.com/$1 [L,R=301]