我的<代码>.htaccess有以下条件: 档案:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^ex.co$
RewriteRule ^(.*)$ http://example.com/?ref=$1 [L,R]
这将向<条码>ex.coxx至example.com?ref=xxxx
。
What I want is to add a line that if a user simply goes to ex.co
it redirects to example.com
and not (as it does currently) example.com?ref=
任何建议?
Thanks!