Skip to main content

Comments

3 comments

  • cPRex Jurassic Moderator
    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
  • dipsac
    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
  • cPRex Jurassic Moderator
    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.