Yannick, it worked like a charm to all three new sites. Great info, thank you for taking the time to help me out.
- Home
- ellenru
ellenru
@ellenru
Latest posts made by ellenru
-
RE: Htaccess 301s to 3 different sites
-
RE: Htaccess 301s to 3 different sites
Thanks Yannick
I'm tracking with you except I have to make the subfolders go not to site B, but new sites...C and D. So can I do it like this:
RedirectMatch 301 /subdirectory/(.*) http://www.websiteC.com/$1
and then
RedirectMatch 301 /subdirectory/(.*) http://www.websiteD.com/$1
The urls match. But the subfolder pages have very few links so I'm less concerned about link juice then just getting the indexing to avoid a bunch of 404s.
The subdirectories on site A got split into 2 freestanding domains for "branding"....and have added a bunch of new pages that don't correspond to the old folder (though some do). They also moved from drupal to WP and I wonder if I need the old htaccess instructions for drupal ? We're keeping the old site in place for a while during the migration.
Thanks so much again for the reply
-
Htaccess 301s to 3 different sites
Hi,
I'm an htaccess newbie, and I have to redirect and split traffic to three new domains from site A.
The original home page has most of the inbound links so I've set up a 301 that goes to site B, the new corporate domain.
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]Brand websites C and D need 301s for their folders in site A but I have no idea how to write that in relationship to the first redirect, which really is about the home page, contact and only a few other pages.
The urls are duplicates except for the new domain names. They're all on Linux..Site A is about 150 pages, should I write it by page, or can I do some kind of catch all (the first 301) plus the two folders?
I'd really appreciate any insight you have and especially if you can show me how to write it.
Thanks
Best posts made by ellenru
-
RE: Htaccess 301s to 3 different sites
Yannick, it worked like a charm to all three new sites. Great info, thank you for taking the time to help me out.
Started optimizing and experimenting with driving traffic for my own projects in '99, doing it for others since '03. I do on page, PPC, reporting and link building mostly with a technical partner who specializes in scripts, redirect issues, etc.
Looks like your connection to Moz was lost, please wait while we try to reconnect.