Neurotic Fishbowl: Domain Pointing?

« Misses in The Gold Box | Main Index | A DVD Winner in The Gold Box »
comments | incoming pings | outgoing pings



strtotime ("December 6, 2002 12:39 AM")) { ?>

Domain Pointing?

I need some help from someone out there with more scripting knowledge I have. I have a friend who has a domain at SWBell. He registered a new domain through 000 Domains, changed the DNS to point to SWBell, and set up a new directory for the new site. Now, the big question is how the hell do you change a .htaccess file to redirect traffic to that URL to the new subdirectory? I found some Redirect Domain Pointer code and tried it out, but nothing's happening. Anyone know what to do next? Help!

.: Posted December 6, 2002 12:39 AM in I'm Looking For...., ";print substr($entry_cats, 0, -2); ?> :.


"; echo "Trackbacks on this post: ", $count, ""; $pingarray = "SELECT p.tbping_source_url, p.tbping_blog_name, p.tbping_created_on, p.tbping_excerpt, p.tbping_tb_id, t.trackback_id, t.trackback_entry_id FROM mt_tbping p, mt_trackback t WHERE (p.tbping_blog_id = $blogid) and (t.trackback_entry_id = $entry_id) and (t.trackback_id = p.tbping_tb_id)"; $resultping = mysql_query($pingarray) or die (mysql_error()); while ($row = mysql_fetch_array($resultping)) { //set up the variables being used - the date can be configured below $url = ($row['tbping_source_url']); $blog = ($row['tbping_blog_name']); $date = date("F d, Y g:i A", strtotime($row['tbping_created_on'])); $excerpt = ($row['tbping_excerpt']); echo "

", $excerpt, "

"; echo "
Posted by "; echo "", $blog, ""; echo " on ", $date, "
"; } ?>

Ping this post
http://www.neuroticfishbowl.com/mt/mt-tb.cgi/936




"..."




Comments

Let's see if I understand the problem. He has an existing website, hosted in some directory at swbell. He's purchased another domain, and has another website in another directory on the same account at swbell?

.: wendell said on December 6, 2002 01:18 AM :: link it :.

If the server is running Apache, then it'll probably need to be configured to recognise the new domain name as a 'virtual host'. Otherwise a browser will try requesting that host from the server and the server will go 'Huh? What am I meant to do with this?'.

As the DNS will just translate www.example.com to an IP 10.0.0.69 , it is up to the server on that IP to decide what to do with it. Unfortently - this usually requires a change in the Apache config (httpd.conf) file: changing .htaccess will NOT help (as the server needs to know which 'virtual host' it is _before_ it can even find the .htaccess file).

If he can't convince SWBell to change the server configuration file (which should take less than 30 seconds), then the only other way would be to use a 'redirect' method as offered by some DNS provides - basically they 'host' your DNS entry and just 'frame' your 'real' site.

(Oh - Microsoft IIS/Netscape IPlanet etc will all need their own configuration changes)

.: Richy C. said on December 6, 2002 07:52 AM :: link it :.

I was just going to say the same thing - SWBell needs to be told about the new domain so that they can set their DNS server up to handle it. Otherwise it's hitting their servers right now and not going anywhere because SWBell says "who is this?" and doesn't know what to do with it. Also, they may not allow multi-hosted domains. (Several domains in one account.) Some companies do, others don't. Some companies allow domain B to point to the same site as domain A, but not to a separate site.

Confused yet?

Oh, and I don't think all platforms use .htaccess files. If they are running under Windows, then it might not be an option at all.

.: Christine said on December 6, 2002 02:30 PM :: link it :.

What is the situation with the new domain name? Is SWBell handling the DNS for it and pointing it at the same location as the original domain? I'm using a PHP trick to redirect multiple domains which are all pointing to the same place -- that would work if domain pointing is set up.

.: Mike said on December 7, 2002 07:37 PM :: link it :.

Redirect / http://www.newdomain.com/

Basically... here is the relevant entry in the Apache manual: http://httpd.apache.org/docs/mod/mod_alias.html#redirect . :)

.: photomatt said on December 10, 2002 12:27 AM :: link it :.

You're too early! Come back at December 6, 2002 12:39 AM to see this post.

Post a comment*:
{HTML ok, IP address logged}

Name:


E-mail Address: (Optional)


URL: (Optional)


Add a smilie (launches smilie 'palette')

Comments:


Remember info?





Subscribe to post
Unsubscribe to post
(e-mail field must be filled in)
Enter e-mail address to subscribe/unsubscribe to comments on this post without having to post a comment:
Subscribe to post
Unsubscribe to post
E-mail:
(e-mail field must be filled in) -->

* Please note: Comments that are inappropriate will be deleted - mean, spiteful, rude comments. Don't let that stop you from posting comments. Just wanted to let you know the rules of the house.