WordPress.org

Ready to get started?Download WordPress

Forums

Redirect 301 From domain to subdomain (1 post)

  1. jumust
    Member
    Posted 2 years ago #

    Hi,
    I'm building a new website (in WordPress) that is going to replace the existing one (not in wordpress and that I'm not managing) on the main domain.
    The existing one will be moved to a subdomain in another server.

    Now I want to redirect all links of the existing site to the new website (I can't lose indexed popular links). I think I should use the .htaccess on the new website and for each of the popular links write in .htaccess file something like:

    redirect 301 /subdomain.domain.com/new.htm http://domain.com/new.htm

    but I'm not sure, and maybe it's a very long process.

    I know that the structure of the existing site is:
    /agenda.php
    /article/
    /articles.php
    /category.php
    /companies.php
    /company_articles.php
    /company.php
    /directory.php
    /ebook/
    /magazine
    /page.php
    /search.php

    any ideas?

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic