| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Sep 2006 Location: London, UK
Posts: 1,900
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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 |
| | |
| | #2 (permalink) |
| NamePros Regular Join Date: Apr 2006
Posts: 360
![]() ![]() ![]() ![]() | 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); ????: NamePros.com http://www.namepros.com/showthread.php?t=704019 Cheers, Jay
__________________ Canadian Domain Registrar Ready.ca |
| | |
![]() |
| 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 |