Redirect Support
How to redirect all possible links of a domain to another link.
For example if domain is abcd.com
then I want to create a redirect such that all links like
Any such link possible redirect to another link or it redirects to xyz.com
Please Help
-
Hey there! You would just need to setup a wildcard redirect inside the cPanel >> Redirect page. I did the following for my domain: and that sent whatever domain I chose from the dropdown list to Google. 0 -
In this case if you visit yourdomain.com/xyz it is redirection to google.com/xyz and not just google.com like it should 0 -
Whoops - I forgot about the /xyz portion. You won't be able to do that in the cPanel interface, so you'll need to edit the .htaccess file directly. If you add the code to the very bottom of the .htaccess file inside public_html for your domain, I would expect that to work well. This particular version catches both www and non-www versions of the incoming domain: RewriteCond %{HTTP_HOST} ^domain\.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.domain\.com$ RewriteRule ^(.*)$ "https\:\/\/google\.com\" [R=301,L]0
Please sign in to leave a comment.
Comments
3 comments