WHMCS-bridge

Watch The Dot Ltd Home Announcements Knowledgebase Network Status Affiliates Contact Us Account  Login Forgot Password? Knowledgebase Portal Home > Knowledgebase > Website Admin > Redirect website to new URL, retaining directory and page location Redirect website to new URL, retaining directory and page location To redirect a website from olddomain.com to newdomain.com, retaining the […]
ContactRead More

Portal Home > Knowledgebase > Website Admin > Redirect website to new URL, retaining directory and page location


Redirect website to new URL, retaining directory and page location




To redirect a website from olddomain.com to newdomain.com, retaining the subdirectory, page and quesry string, eg:
  • http://www.old.com/directory/page.php?query=thisto
  • http://www.newdomain.org/directory/page.php?query=this 
Use this in the .htaccess file:

Options +FollowSymLinks
RewriteEngine On
RewriteRule ^(.*) http://www.kcuk.org.uk%{REQUEST_URI} [R=301,NC]


Was this answer helpful?

Print this Article Print this Article

Also Read
Force SSL (Views: 0)

Powered by WHMCompleteSolution

WordPress and WHMCS integration by i-Plugins