WordPress.org

Ready to get started?Download WordPress

Forums

Simple 301 Redirects
[resolved] A question before I install (5 posts)

  1. desertravenart
    Member
    Posted 2 months ago #

    I just need to redirect one whole site, to another whole site. My new site has been copied from the old one, I am basically just changing the name of the site. Can I do a simple redirect from site A to Site B with out doing all the paged and posts individually.

    https://wordpress.org/plugins/simple-301-redirects/

  2. Michael Mann
    Member
    Posted 2 months ago #

    If the old domain is still there, you can avoid using any plugins and just add this directly to a .htaccess file in the root folder under the old domain:

    Redirect 301 / http://mynewsite.com/

    This will redirect the entire site.

  3. Johanhorak
    Member
    Posted 1 month ago #

    Thanks for this @manndtp.

    How will it work if I want to delete the existing site?

    I am moving my blog from http://blog.capeholidays.info to just http://capeholidays.info

    Thanks.

  4. Michael Mann
    Member
    Posted 1 month ago #

    To redirect requests for sub.yourdomain.com/uri to yourdomain.com/uri:

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^sub.yourdomain.com$
    RewriteRule ^(.*)$ http://yourdomain.com/$1 [R=301,L]
  5. Johanhorak
    Member
    Posted 3 weeks ago #

    @manndtp kind of you. Thanks.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.