How to redirect all urls to new domain.

5 replies
Hello,

I want to redirect my domain to another domain. All site structure is same, just want to change the domain only.

I have tried the redirect function in cpanel, but it redirects only when going to homepage, going to individual page, it doesn't redirect, I even check mark wild card feature, still doesn't work.

What I want is, going to olddomain.com/page1 will redirect to newdomain.com/page1

Thanks.
#domain #redirect #urls
  • Profile picture of the author vovanfree
    it will harm your web-optimization efforts for old domain... unless you plan to completely kill it.... anyways, try SquareSpace
    {{ DiscussionBoard.errors[10790275].message }}
  • Profile picture of the author George Schwab
    how about at the domain registrar?

    otherwise 301 in cpanel, permanently moved
    Signature

    {{ DiscussionBoard.errors[10790694].message }}
  • Profile picture of the author AceOfShirts
    How many pages does your old website have? Does it get much traffic? Are there a lot of links to your old site? Is it a wordpress site? html? php?
    {{ DiscussionBoard.errors[10790807].message }}
  • Profile picture of the author aizaku
    301 direct it or have your host provider do it..

    it's not difficult, if I did it im sure you can too
    Signature
    >> 2018 Money Making Method Video Guides [NO OPTIN] <<
    80% Of These Proven Guides Are Free... ]
    {{ DiscussionBoard.errors[10791609].message }}
  • Profile picture of the author yukon
    Banned
    Originally Posted by YoofSpeak View Post

    Hello,

    I want to redirect my domain to another domain. All site structure is same, just want to change the domain only.

    I have tried the redirect function in cpanel, but it redirects only when going to homepage, going to individual page, it doesn't redirect, I even check mark wild card feature, still doesn't work.

    What I want is, going to olddomain.com/page1 will redirect to newdomain.com/page1

    Thanks.




    Add the code below to a new line on your .htaccess file and change the URLs to whatever you need.

    The first URL is a relative URL (example: /page1) from the old domain, don't use the domain name in that URL.

    The second URL is the location where you want the old URL redirected, use the full URL.



    Code:
    Redirect 301 /page1 http://newdomain.com/page1
    Don't forget to use http:// on the URL for where you want the old page redirected. If you're new domain has https:// then use it.



    Example, the .htaccess code below would redirect this forum thread to ebay.

    Code:
    Redirect 301 /main-internet-marketing-discussion-forum/1206348-how-redirect-all-urls-new-domain.html http://www.ebay.com/
    Signature
    Hi
    {{ DiscussionBoard.errors[10791639].message }}

Trending Topics