mod rewrite help

Discussion in 'General' started by Toucan, Nov 16, 2012.

  1. Toucan

    Toucan New Member

    I've moved a site from .aspx to my php server and now i'm trying to preserve the incoming links using rewrite rules in .htacess.

    I've tried this:
    Code:
    #THIS WILL BE DONE FOR EVERY SIMILAR PAGE ---> 
    Redirect /du-represented-dmcs/denmark.aspx http://www.dudmc.com/dmcs-worldwide/dmc-partners/european/24-denmark-dmc
    #THIS IS TO CATCH EVERYTHING ELSE--->
    RewriteRule ^(.*)\.aspx$ http://www.dudmc.com/
    Redirect /Info-Request-Forms/RFP.aspx http://www.dudmc.co.uk/du-service/request-for-proposal
    
    The problem is the second rule seems to overwrite the second and the 3rd.
    Without it the redirects work fine.

    I'm trying to get this done before google starts losing interest in the existing links..

    Thanks
     
  2. falko

    falko Super Moderator ISPConfig Developer

Share This Page