Skip to main content

How to redirect domain to new website

Comments

2 comments

  • 24x7server
    Hello, Can you please try add following code in your .htaccess file. RewriteEngine On RewriteCond %{HTTP_HOST} ^(www.)?YourDomain.com$ RewriteRule ^(/)?$ blog [L]
    NOTE : change "YourDomain.com" to your domain name and blog to your sub-directory name
    0
  • cPanelMichael
    Hello :) The examples you provided show that it's the same domain name but just a different subdirectory. You could simply ensure the contents of the subdirectory replace what currently exists in the public_html directory if you want it to appear as the default content. Thank you.
    0

Please sign in to leave a comment.