Many people make a common mistake while installing the blogs on their domain,What they do is they install the blog on some folder rather than the root of the website.Hence the address of the blog becomes something like without keeping any content on the root of the site (i.e.

That’s not the only case,Many times by misake OR unknowingly they make their whole website on some other folder rather than the root.and It become a mess to again shift the website one tree down

BUT there is one thing which could solve this issue without moving the whole website,That’s redirecting the users from the root -> to that folder.

Redirection can be made using META tags or using .htaccess file .Use of .htaccess is recommended in redirection cases as many search engine penalizes for using a META refresh tags( as it is mostly used by keyword spammers)

So coming to the point, consider you own a domain “” And you want to redirect all the traffic form “” to “” then use these codes on the .htaccess file on the root (

These codes can also be used if you want .. .. . to change your default web page to some other internal folder page.(although htaccess default directory can be used)

In all these examples is considered as root AND /blog/ is considered as the internal folder

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^$ /blog/ [R=301]


RewriteEngine on
RewriteRule ^([/]+)$ blog/$1 [L,R=301]


RedirectMatch permanent ^/$

Although I will recommend to use the 1st one.