您好,如果有人在我的网站上使用 get_file_contents,我正在尝试将用户重定向到特定控制器。
这是我的代码
----------
# Options
Options -Multiviews
Options +FollowSymLinks
#Enable mod rewrite
RewriteEngine On
RewriteBase /codeigniter/
RewriteCond %{HTTP_USER_AGENT} ^$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^(java|curl|wget).* [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^.*(winhttp|HTTrack|clshttp|archiver|loader|email|harvest|extract|grab|miner|curl|wget|python|nikto|scan).* [NC,OR]
RewriteCond %{REQUEST_METHOD} !^(GET|POST|HEAD) [NC]
RewriteRule ^(.*)$ index.php?/$1 [L]
# Here im trying to go to index.php/hacks controller
# it always goes to default controller set in config
# i want to go to a specific controller
# how can i do this ?