Enjoy unlimited access to all forum features for FREE! Optional upgrade available for extra perks.
MariaBuy Hostmaria Deal

Anyone know of have a script for?

Status
Not open for further replies.

JMJ

DNF Addict
Legacy Exclusive Member
Joined
Feb 13, 2003
Messages
2,339
Reaction score
0
I want my header or logo to change when a person enters via a different domain. Ex. if they enter via domain1.com then domain1.com's header shows. If they enter via domain2.com then domain2.com's header shows.

Thanks
 

David G

Internet Entrepreneur
Legacy Exclusive Member
Joined
Apr 15, 2002
Messages
5,755
Reaction score
63
JoltHost said:
I want my header or logo to change when a person enters via a different domain. Ex. if they enter via domain1.com then domain1.com's header shows. If they enter via domain2.com then domain2.com's header shows. Thanks

:huh: Do you mean so called Masked Forwarding, where the url displays what was typed in but the site being forwarded to is a different one and the site name in the browser window does not change?
 

cyphix

Level 9
Legacy Platinum Member
Joined
Jan 20, 2003
Messages
3,609
Reaction score
1
The only way that I know of to accomplish something like that is via referral tracking & you can't rely on there always being a referrer since they don't always get sent (depends on security settings etc etc).
 

FusionX

Platinum Lifetime Member
Legacy Exclusive Member
Joined
Jul 6, 2004
Messages
341
Reaction score
0
JoltHost said:
I want my header or logo to change when a person enters via a different domain. Ex. if they enter via domain1.com then domain1.com's header shows. If they enter via domain2.com then domain2.com's header shows.

Thanks

I also need something like this.

I think that a very dirty and crude way to do may be using Javascript to determine the URL in the address box and then generating the page in runtime and thereby loading the appropriate image and html based on the result.

Disclaimer: I am not really sure if this will work, but you can definitely try it out. Tell us the results.

~FusionX
 

MediaHound

Former DNF Admin
Legacy Exclusive Member
Joined
Feb 25, 2004
Messages
4,156
Reaction score
3
JoltHost said:
I want my header or logo to change when a person enters via a different domain. Ex. if they enter via domain1.com then domain1.com's header shows. If they enter via domain2.com then domain2.com's header shows.

Thanks

Use ssi:

<!--#echo var="SERVER_NAME"-->

dnf appreciated!
 

adoptabledomains

Level 7
Legacy Platinum Member
Joined
Sep 4, 2002
Messages
776
Reaction score
0
There are probably quite a few ways to accomplish this. One I can think of is to have the each domain parked on a separate account with a 301 redirect in .htaccess to a different index page or directory (with different logos) based on the domain the hit came in on. I use a similar technique to redirect instead of park additional domains on my main site, and in effect "Park" domains to a directory instead of the main index page. It keeps from being penalized by search engines for duplicate content on different domain names and consilidates hits to one domain for ranking. here's a link to the technique. It's designed for SEO, but could be used for your purpose.

http://www.tamingthebeast.net/articles3/spiders-301-redirect.htm


I'm pretty sure it can be done with other .htaccess tricks as well. Very easy if you have an unlimited domain reseller hosting account.

I've seen some java or javascript programs that can send to a different entry page based on referral or other variables.
 

MediaHound

Former DNF Admin
Legacy Exclusive Member
Joined
Feb 25, 2004
Messages
4,156
Reaction score
3
I think that the simplest is the ssi technique I typed above.

you could do for instance, <img src='images/<!--#echo var="SERVER_NAME"-->.gif'>

let your imagination do the rest... there's a ton of ways to incorporate this method of including files.

Hope it helps you guys.

Take care,
MH
 

Martin23

Level 4
Legacy Platinum Member
Joined
May 13, 2004
Messages
163
Reaction score
0
its not hard.

Each name just redirect to

/index.php?domain=WHATEVER.COM

Then in page

<h1> <? php ' echo'$domain

a very simple easy way todo it.

Send me a pm if you need help
 

JMJ

DNF Addict
Legacy Exclusive Member
Joined
Feb 13, 2003
Messages
2,339
Reaction score
0
Thanks for the suggestions. I'll try a few out and may even contact some of you if I can't figure it out.
 
Status
Not open for further replies.

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!
IT.com

Premium Members

Be a Squirrel
MariaBuy

New Threads

Our Mods' Businesses

MerchArts
UrlPick.com

*the exceptional businesses of our esteemed moderators

Top Bottom