Start a conversation

How to redirect from one blog URL to another blog URL

The hosting has many measures through which cPanel hosting are counted as best to host any website because of its Operating system level security features and functionality. For an administrative control over every directory of a hosting resources on the web server a file called .htacess has some permission and this file also called as distributed configuration file provide a way to make configuration changes on a per-directory basis. A file, containing one or more rules is placed in a particular document directory, and the directives apply to that directory, and all sub directories thereof. If you want to redirect all the URLs  from one blog to another blog URLs then add the following rewrite rules in .htaccess files.

For Example :
If we redirect an old blog from “http://www.xyz.com/blog to new domain http://www.abc.com. You just have to add the following rewrite rules into old blog .htaccess files means when any one access the URL ” http://www.xyz.com/blog/anything will automatically redirected to“http://www.abc.com/anything ”.

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^bestdesigns.co.inblog
RewriteRule ^(.*)$ http://www.bestdesigns.co.in/blog$1 [R=301,L]
RewriteRule  ^$  http://www.indianwebportal.com/ [L]
RewriteRule (.*) http://www.indianwebportal.com/$1 [L]
</IfModule>

Please take a Note of this : Replace “xyz.com/blog” equal to your old blog url and also Replace “www.abc.com” equal to new blog url.

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Benajir Kamal

  2. Posted

Comments