I am affraid using third party for control panel, for example plesk and cpanel. Because in cpanel, I can’t use .htacces, it make error page.

So, for redirect domain in plesk, I was searching in google and I found this tutorial, he said for using this script in .htaccess :

RewriteEngine on
RewriteCond %{SERVER_NAME} $domain [OR]
RewriteCond %{SERVER_NAME} www.$domain
RewriteRule ^.*$ http://$Redirect_To_Domain [R=301]

Note: $domain match the $domain above (e.g. mywebsite.com.au) and $Redirect_To_Domain should be the domain to which you are redirecting to (e.g. mynewwebsite.com.au).

But, thats not work for my server. So, I just try to use simple way. just make .htaccess in httdocs and write this :

RedirectPermanent / http://destination-redirect-domain.com

change http://destination-redirect-domain.com with your destination domain. And don’t forget to chmod 755 .htaccess

Category: techie  Tags: , ,
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>