• Can someone please please write out the exact text that I would need to do the following. I need it to do this. Permanent redirects..

    Main page to go to a specific page of the new site. Not the home page.
    example.com/page/

    Then the rest of the site’s pages to redirect to new site respectively.. (all the site’s content has been moved to the new site in the exact location, so the pages need to have the same url extensions.
    example:
    olddomain.com/example-page-blah-A
    to
    newdomain.com/example-page-blah-A

    I have been trying and been failing horribly. I do not know how to write code at all.
    Please if you would, make this copy and paste for me

    Thanks so much

Viewing 2 replies - 1 through 2 (of 2 total)
  • Try this

    # Only redirect root
    Redirect 301 / http://mynewsite.com/newpage/
    
    RewriteEngine on
    
    # The rest goes to new domain's URL
    RewriteRule ^ http://www.mynewsite.com%{REQUEST_URI} [L,R=301]
    Thread Starter joeschmo

    (@joeschmo)

    Thanks for replying.
    The last half is working. The first part tho isn’t. When I type old address it goes to the new addresses home page. Not the url/page that I specified.
    ?
    Any other guesses?

    [No bumping. If it’s that urgent, consider hiring someone.]

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