NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Can I manage URL forwarding on my own VPS hosting account?

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
5 members in live chat ~  


Reply
 
LinkBack Thread Tools
Old 02-24-2011, 08:46 PM THREAD STARTER               #1 (permalink)
Senior Member
Join Date: Sep 2006
Location: London, UK
Posts: 1,900
Erdy has a reputation beyond reputeErdy has a reputation beyond reputeErdy has a reputation beyond reputeErdy has a reputation beyond reputeErdy has a reputation beyond reputeErdy has a reputation beyond reputeErdy has a reputation beyond reputeErdy has a reputation beyond reputeErdy has a reputation beyond reputeErdy has a reputation beyond reputeErdy has a reputation beyond repute
 



Can I manage URL forwarding on my own VPS hosting account?


Hi,

I have many domains. Each of them is URL forwarded to a different URL like this:

mydomain1.com is forwarded to http://www.sedo.com/search/details.p...=mydomain1.com
????: NamePros.com http://www.namepros.com/programming/704019-can-i-manage-url-forwarding-my.html
mydomain2.com is forwarded to http://www.sedo.com/search/details.p...=mydomain2.com
mydomain3.com is forwarded to http://www.sedo.com/search/details.p...=mydomain3.com

Of course I can do URL forwarding on my domain registrar. For instance if the domain is registered at Godaddy I should login to my Godaddy account and manage the URL forwarding over there. But I don't want to do this. I want to manage the URL forwarding myself using my hosting account. I want to go to my domain registrar, let's say Godaddy and set my nameservers like this:

mydomain1.com uses ns1.mywebsite.com and ns2.mywebsite.com
mydomain2.com uses ns1.mywebsite.com and ns2.mywebsite.com
mydomain3.com uses ns1.mywebsite.com and ns2.mywebsite.com

Then I want to control the URL forwarding myself. Can you give me any direction? I have no idea how to achieve this. What should I be searching for? Where do I go from here? How is this going to work?

Thanks
Erdinc
Erdy is offline   Reply With Quote
Old 02-25-2011, 09:05 AM   #2 (permalink)
NamePros Regular
 
baxter's Avatar
Join Date: Apr 2006
Posts: 360
baxter is just really nicebaxter is just really nicebaxter is just really nicebaxter is just really nice
 


Ethan Allen Fund Save The Children
Hey Erdinc,

I did this on one website using php. You would want to extract the host from $_SERVER['HTTP_HOST'], and determine the redirect based on it.

Here would be an example for the above domains:

Code:
<?php

$host = strtolower($_SERVER['HTTP_HOST']);

$url = 'http://www.sedo.com/search/details.php4?domain=%s'

$target = sprintf($url,$target);

header('Location: '.$target);
Then you just add the domains as a pointer domains, as you need them. Haven't tested the above but it should work.
????: NamePros.com http://www.namepros.com/showthread.php?t=704019

Cheers,

Jay
__________________
Canadian Domain Registrar Ready.ca
baxter is offline   Reply With Quote
Old 02-25-2011, 10:34 AM THREAD STARTER               #3 (permalink)
Senior Member
Join Date: Sep 2006
Location: London, UK
Posts: 1,900
Erdy has a reputation beyond reputeErdy has a reputation beyond reputeErdy has a reputation beyond reputeErdy has a reputation beyond reputeErdy has a reputation beyond reputeErdy has a reputation beyond reputeErdy has a reputation beyond reputeErdy has a reputation beyond reputeErdy has a reputation beyond reputeErdy has a reputation beyond reputeErdy has a reputation beyond repute
 



Thanks Jay,
I will try this.
Erdy is offline   Reply With Quote
Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Empire Technolgy VPS Sale XEN & Virtuozzo Lowesthost Web Hosting Offers 0 10-03-2010 07:47 PM
Empire Technology Dedicated server Unmetered Xen & Managed Virtuozzo Sale Lowesthost Web Hosting Offers 0 07-14-2010 09:07 AM
$1.99 Shared | $6.99 Reseller | $14.95 VPS | Offshore Available! | 15% OFF FOR LIFE! MBennett Web Hosting Offers 3 05-19-2010 08:13 AM
Arbers Hosting -$1.99 Shared | $6.99 Reseller | $14.95 VPS | 15% OFF! Arbers Web Hosting Offers 0 05-17-2010 08:23 AM

 
All times are GMT -7. The time now is 02:44 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger