Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Bidding Directory   ClickBooth Network   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 12-20-2006, 07:22 PM   #1 (permalink)
Inactive
 
Join Date: 04-29-06
Posts: 25
iTrader: 0 / 0%
Latest Blog:
None

CrapDice is liked by many
Domain Forwarding

I have a fully-developed site hosted at companyQ, I also have a domain name registered with companyR that is "forwarded" to the root directory at companyQ.

Is there any way to change logo images depending on which domain a visitor accesses the site?

For instance-- if they arrive at ABC.com (hosted and registered via companyQ) the logo appears as ABC.gif however if they access XYZ.com (forwarded to the companyQ host but registered with companyR) the logo image appears as XZY.gif?

Basically, if people arrive to my site via ABC.com, then I want the logo to indicate as much. However if they arrive via XYZ.com -- which is just a masked forward to ABC.com -- the logo is different.

Mad props, and perhaps a wooden nickel , if you can solve this riddle.
CrapDice is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 12-21-2006, 09:55 AM   #2 (permalink)
Contributing Member
 
Izzmo's Avatar
 
Join Date: 11-01-03
Location: Kansas City
Posts: 1,007
iTrader: 0 / 0%
Latest Blog:
None

Izzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to behold
Send a message via ICQ to Izzmo Send a message via AIM to Izzmo Send a message via MSN to Izzmo Send a message via Yahoo to Izzmo
It's very simple actually. If you are going to use PHP, you can simply use the referral option.

Using this feature of PHP: $_SERVER["HTTP_REFERER"], you can see which site the visitor came from.

If the visitor came from the site of companyQ, then set a function to change the logo, but if the visitor came from anywhere else, then just leave the logo at a default.

I hope this made sense
__________________
~Izzmo
ZeroWeb Hosting & Design - Customizable hosting for every type of user!
Izzmo is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
What's going on with GoDaddy's 301 Domain Forwarding? chrisdaniele Domain Name Forum 5 06-24-2008 08:10 AM
Domain Forwarding / Domain Re-direct Cricket Google Forum 5 09-24-2007 07:39 AM
Transferring Forwarding Domain? spl1nter Domain Name Forum 7 09-04-2004 09:59 AM
Forwarding a domain instead of parking a domain druffus Dedicated Servers 0 06-03-2004 07:52 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 06:54 PM.
© Copyright 2008 V7 Inc