我将域名cotswoldplayers.co.uk停放在cotswoldplayhouse.co.uk上,并使用cPanel的托管域名工具重定向到cotswoldplayhouse.co.uk/redirection.htm。 当人们去www.cotswoldplayers.co.uk但是如果他们去www.cotswoldplayers.co.uk/any-other-link
那就失败了有没有办法让www.cotswoldplayers.co.uk/anything-at-all进入重定向页面?
由于
答案 0 :(得分:0)
更改.htaccess
RewriteEngine on
RewriteCond %{HTTP_HOST} cotswoldplayers.co.uk
RewriteRule ^(.*)$ http://cotswoldplayhouse.co.uk/redirection.htm [L]
答案 1 :(得分:0)
最后使用'addon'域而不是'parked'域对其进行排序,然后在插件域的.htaccess文件上设置重定向...
RewriteCond %{HTTP_HOST} ^cotswoldplayers\.co\.uk$ [OR]
RewriteCond %{HTTP_HOST} ^www\.cotswoldplayers\.co\.uk$
RewriteRule ^(.*)$ "http\:\/\/www\.cotswoldplayhouse\.co\.uk\/redirection\.htm" [R=301,L]