On Fri, January 25, 2008 7:59 pm, Sam Gentle wrote:
> On Jan 25, 2008 7:21 PM, Voytek Eymont <[EMAIL PROTECTED]> wrote:

> There are actually a number of ways to do this, but it depends what
> behaviour you want from the client and how much access you have to the
> server.

> All those methods except for mod_proxy are explained in more detail
> here: http://en.wikipedia.org/wiki/URL_redirection#Techniques
> the relevant section of mod_proxy's documentation:
> http://httpd.apache.org/docs/2.0/mod/mod_proxy.html#proxypassreverse

Sam,

thanks

in present scenario, domain rewrite seems the best choice, eventually, the
current domain will be dropped

.htaccess
-------------------
RewriteEngine On

RewriteCond %{HTTP_HOST} ^.*oldwebsite\.com$ [NC]
RewriteRule ^(.*)$ http://www.preferredwebsite.net/$1 [R=301,L]
---------------------

how do interpret 'www.sub.domain.org.au' in above rewritecond: ?

RewriteCond %{HTTP_HOST} ^.*domain\.org\.au$ [NC]

?

-- 
Voytek

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

Reply via email to