View Single Post
  #1  
Old 16th November 2012, 18:02
Toucan Toucan is offline
Senior Member
 
Join Date: Dec 2009
Posts: 479
Thanks: 78
Thanked 40 Times in 34 Posts
Default mod rewrite help

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
Reply With Quote
Sponsored Links