php and htaccess

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi...
i know this URL Rewriting Guide stuff isnt PHP per se, but since all
(good) php developers run their apps on Apache Webservers, its worth
asking for:

How can I redirect all incoming traffic from www.server1.com to
www.server2.com with htaccess rewrite's conditions and rules? the
catch is that it also has to work with urls like
www.server1.com/about_us/ » www.server2.com/about_us/ .....etc

I tried this block of code here (found on
http://httpd.apache.org/docs/2.0/misc/rewriteguide.html), but didnt do
the trick:
RewriteCond %{REMOTE_HOST} !^.+\.from-here\.com$
RewriteRule ^(/~.+) http://www.to-here.com/$1 [R,L]

Im really desperate to find a solution.

Thanks,
IIG Andres Santos
Móvil » (593) 9 7026627


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

PHP Data object relational mapping generator - http://www.meta-language.net/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux