Knowledgebase
.htaccess redirect setting ?
Posted by ttgt, 04-03-2012, 04:45 AM | Hi,
i want to modify the domain for my whmcs,
originally,i write https://old-domain.com/cart.php?a=add&pid=127,
and i hope it will redirect to new domain https://new-domain.com/cart.php?a=add&pid=127
it will works for all the page and url,
is it possible ?
thanx
|
Posted by iDeq, 04-03-2012, 05:29 AM | It's not only possible but easy too
Create an .htaccess file using the below code, then put it in the root directory of your old website:
Replace www.newdomain.com in the above code with your actual domain name. All the folders/directories and pages/url's of your old domain will then be redirected to your new domain.
|
Posted by ttgt, 04-03-2012, 05:31 AM | Hi,but the visitor will still stay on original page or folder,just different domain,correct ? thanx
|
Posted by iDeq, 04-03-2012, 05:57 AM | Yes if the new sites' structure is exacly the same.
|
|
Add to Favourites
Print this Article |
Also Read