How to redirect all inner pages to Root Domain?

by backlinkxone 2 replies
Hi,

I've got a nice domain and I want to 301 redirect all of the inner pages/urls to Root Domain.

Suppose, example.com has 150 posts and pages. Now, I want to 301 redirect all 150 posts and pages to Root Domain.

How can I do that? Any idea?
#programming #domain #pages #redirect #root
Avatar of Unregistered
  • Profile picture of the author David Beroff
    You can easily use a wildcard in .htaccess to do this, although I'm not so sure you really want 301's. (A 301 redirect is "permanent", meaning you'll likely have difficulties in the future when you want to undo this.)
    Signature
    Put MY voice on YOUR video: AwesomeAmericanAudio.com
    • Profile picture of the author backlinkxone
      I really need to do that.

      i.e: I will redirect all posts and pages to the root domain(example.com). And, after that I will redirect example.com to NewSite.com

Trending Topics