How to redirect result of mod rewrite

Discussion in 'Apache' started by PinoyIto, Feb 20, 2012.

  1. #1
    Hello,

    Will you please help with this problem. I want to redirect a result of a mod re-write to other page..

    Here is the code

    RewriteRule ^([^/]+)/$ /index.php?file=home&sub1=$1 [NC]
    Code (markup):
    After this code I insert the following code

    RewriteRule ^/metro-manila/ /movetomanila.html [R=301,L]
    Code (markup):
    My purpose is that if the url created in the first code is mysite.com/metro-manila/ it will redirected to other url which is movetomanila.html but other result of the first code will not be affected.

    Thak you in advance
     
    PinoyIto, Feb 20, 2012 IP