excel - Redesigned website: New URL structure: 301 Redirecting all old URLs -
i have 5500 indexed urls in google on website , launch redesigned version of brand new url structure.
because of thousands of backlinks want redirect old urls new ones using htaccess 301 redirect.
the problem is, takes forever manually write htaccess-rules in excel because have match new urls old ones.
i.e. how excel document set up:
| old url | new url | htaccess rule |
/default/category/product-id/my-product | /category/my-product/ | 301 redirect /default/category/product-id/my-product http://mydomain.com/category/my-product/
is there way (software/service/tool) match these urls based on product name inside of url don't have manually???
there 2 ways can think of:
you can use http module reads excel , loads in key-value pair old , new url , put in cache. in beginrequest, if url (old url) found in key, response.redirect new page. can add 301 header here make sure browser gets message permanently redirected. check codeproject article
if old , new url has got pattern can iis rewrite module , use regex create rule redirect. check iis rewrite module
hope helps. milind
Comments
Post a Comment