Re: [SLUG] cname domain redirection Q

2008-02-11 Thread Jeremy Visser
On Sun, 2008-02-10 at 00:16 +, Amos Shapira wrote:
 On Feb 5, 2008 3:14 AM, Jeremy Visser [EMAIL PROTECTED] wrote:
  Yep, as Alex suggested, a HTTP redirect is what you need.
 
 On top of the technical stuff covered by Alex and Jeremy, I'd suggest
 considering adding a page for those you arrive through the old domain
 name suggesting that they'll update their bookmarks or the page they
 arrived through to record the new domain name, because once the old
 .org.au domain DNS record is gone they'll reach either a black hole or
 maybe worse - another web site altogether.

But if you do a 301 redirect properly, Google will pick up your domain
change _really_ fast. Google doesn't know that your domain has changed
if you just put up a normal HTML file, thus you'll have stale search
results in the index.


signature.asc
Description: This is a digitally signed message part
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Re: [SLUG] cname domain redirection Q

2008-02-09 Thread Amos Shapira
On Feb 5, 2008 3:14 AM, Jeremy Visser [EMAIL PROTECTED] wrote:
 Yep, as Alex suggested, a HTTP redirect is what you need.

On top of the technical stuff covered by Alex and Jeremy, I'd suggest
considering adding a page for those you arrive through the old domain
name suggesting that they'll update their bookmarks or the page they
arrived through to record the new domain name, because once the old
.org.au domain DNS record is gone they'll reach either a black hole or
maybe worse - another web site altogether.

--Amos
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] cname domain redirection Q

2008-02-04 Thread Jeremy Visser
On Mon, 2008-02-04 at 11:48 +1100, Voytek Eymont wrote:
 from a user perspective, his browser url stays as
 'adomain.org.au/whatever', so, the user is not even aware he is accessing
 another domain
 
 what would it need on remote server to actually 'switch' to the the remote
 server's domain name ? (fully qualified base url thing...?)

Yep, as Alex suggested, a HTTP redirect is what you need.

Because you said that if you navigate via either domain you get the same
site, you're most likely not using virtual hosts, so you can use
mod_rewrite to acheive the redirect:

httpd.conf:
IfModule !mod_rewrite.c
LoadModule rewrite_module modules/mod_rewrite.so
/IfModule
IfModule mod_rewrite.c
RewriteEngine On
RewriteCond %{HTTP_HOST} ^.*olddomain\.com$ [NC]
RewriteRule ^(.*)$ http://newdomain.com/$1 [R=301,L]
/IfModule

Note: I didn't test the above, so your mileage may vary.

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] cname domain redirection Q

2008-02-03 Thread Voytek Eymont
I have adomain.org.au, the domain will be dropped in the next few month,
and, all web data will reside on overseasdomain.net hosted remotely

currently, CNAME has been set, so, local users typing 'adomain.org.au'
reach web data on remote server, that's all fine;

from a user perspective, his browser url stays as
'adomain.org.au/whatever', so, the user is not even aware he is accessing
another domain

what would it need on remote server to actually 'switch' to the the remote
server's domain name ? (fully qualified base url thing...?)




-- 
Voytek

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] cname domain redirection Q

2008-02-03 Thread Alex Samad
On Mon, Feb 04, 2008 at 11:48:34AM +1100, Voytek Eymont wrote:
 I have adomain.org.au, the domain will be dropped in the next few month,
 and, all web data will reside on overseasdomain.net hosted remotely
 
 currently, CNAME has been set, so, local users typing 'adomain.org.au'
 reach web data on remote server, that's all fine;
 
 from a user perspective, his browser url stays as
 'adomain.org.au/whatever', so, the user is not even aware he is accessing
 another domain
 
 what would it need on remote server to actually 'switch' to the the remote
 server's domain name ? (fully qualified base url thing...?)
http redirect ?
 
 
 
 
 -- 
 Voytek
 
 -- 
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
 

-- 
There is very little future in being right when your boss is wrong.


signature.asc
Description: Digital signature
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html