This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: URL Rewritting rule
Author
Message |
gaurav_goel209
Newbie


Joined: 12 September 2011
Location: India
Posts: 1
Posted: 12 September 2011 at 4:14am


I need some clever regular expression writing in IIS7 to
redirect
traffic from one site to another, the pages are similar
in structure
but information needs re-writing.

Here's an example:

http://www.mysite.com/manufacturers/Name_of_Manufacturer_
6828/Name_OF_Product_43146.htm

needs to be structured as the following

http://www.newsite.co.uk/free-msds-download/name-of-
manufacturer/name-of-product/

Here's what needs changing:

1). Only Alpha, Numeric and hyphen's allowed.
2). Change '_' to '-'.
3). Remove the '_NUMBER' directly after the manufacturer
name and
before the '/'.
4). Remove the '_NUMBER' directly after the product name
and before the '.htm'.
5). Remove the '.htm' and replace with a '/'.

It needs writing into the code below please as a
permanent 301 redirect:

<rule name="CustomRule">
<match url="" />
<action type="Redirect" url="" />
</rule>
Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 13 September 2011 at 7:32am

This is quite an issue.

Please, consider using the Helicon Ape and mod_dbd.
According to what you've desribed, please, consider requesting for the Premium Support

Regards
Andrew
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version