• Hi,

    Can I redirect all the pages on an old domain to the homepage/frontpage of a new domain using .htaccess?

    What I need is something like this: olddomain.com -> newdomain.com, olddomain.com/blog -> newdomain.com, olddomain.com/news -> newdomain.com, etc.

    Is that possible?

    Thanks,
    Mads

Viewing 2 replies - 1 through 2 (of 2 total)
  • If all the URL strings are going to go to the same link then why not do a 301 redirect and call it a day?

    Redirect 301 / https://your-new-site.com/

    Thread Starter Mads Phikamphon

    (@madsphi)

    That’s exactly how I redirect at the moment, but when I do so, I end up with this kind of redirection:

    olddomain.com -> newdomain.com, olddomain.com/blog -> newdomain.com/blog, olddomain.com/news -> newdomain.com/news, etc.

    Not the kind of redirection I need:
    olddomain.com -> newdomain.com, olddomain.com/blog -> newdomain.com, olddomain.com/news -> newdomain.com, etc.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘.htaccess redirect’ is closed to new replies.