0
如何添加到.htaccess文件,以便下列规则不适用如果URL包含某个变量?简单的URL重写
# Options All
# Options -Indexes
#
# RewriteEngine on
#
# RewriteCond %{HTTP_REFERER} !^$
# RewriteCond %{HTTP_REFERER} !^http://(www\.)?example.com/.*$ [NC]
# RewriteRule (.*)$ /shared/php/v1/hotmusiclink.php?p=$1 [L]
# AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi
Options -ExecCGI
例如,上面应该重定向URL都对hotmusiclink.php,除非他们有字符串?代码= s0mec0de在URL
谢谢:)