Rewrite Rule Help

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

 



Hi.. I need the following Rewrite Rule now, 

 RewriteEngine on
        RewriteCond %{HTTP_HOST} ^www.ABC.com$ [NC]
        RewriteRule ^(.*)$ http://www.XYZ.com [R,L]

So it will redirect www.ABC.com to www.XYZ.com but our developer has the requirement to redirect
www.ABC.com/doc/abc.html to www.XYZ.com/doc/abc.html and www.ABC.com/old/ccc.html to
www.XYZ.com/old/ccc.html and etc

How should I change my Rewrite Rule?

Thanks  

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux