Welcome to WebmasterWorld Guest from 18.206.48.142

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

301 Woe and Pain

redirecting an entire site with variables!?

     
3:54 pm on Apr 2, 2012 (gmt 0)

Junior Member

10+ Year Member

joined:Mar 25, 2004
posts:161
votes: 0


hey guys!
ive a troublesome little 301 to write here, but not sure where to start.

i have two websites, which i'll call site A and site B.
I need to redirect site B to site A, but with a twist:

b.example.com should redirect to a.example.com/folder

that landing page will change content depending what the secondary site's url is, ie. if site-c.com or site-d.com arrives at that page, different content is displayed.

also the folder in site-a would need to be the sites root.

is this possible? i'm sure it must be!
so far i've changed the dns of site-b to the same as site-a, and am waiting on the changes to propagate.

any suggestions?

[edited by: incrediBILL at 8:03 pm (utc) on Apr 2, 2012]
[edit reason] exemplified URLs [/edit]

4:45 pm on Apr 2, 2012 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 9, 2011
posts:15812
votes: 848


Do you mean you're redirecting URL-for-URL, or that everyone arriving at site b will end up on the same page?

Does "site-a.com/folder" mean a physical directory or an URL?

Are you looking at something like a package of redirects pointing to

{URL on site a}?content={details depending on source}

with query string set in the originating domain before redirection?
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members