VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 Search Engine Optimisation
 Redirect old directory to root directory
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

DrApple
VP-ASP New User

Australia
74 Posts

Posted - April 17 2012 :  05:08:27  Show Profile  Visit DrApple's Homepage  Reply with Quote
I have rebuilt a VPASP site in the root directory. The old store was in a folder called /shop650/

I have installed URL Rewrite in IIS7 but I am stumped on how to write the regular expression to direct anything in /shop650/ back up to the root level.

i.e. /shop650/shopexd.asp?id=837 needs to be 301 redirected to
/shopexd.asp?id=837

/shop650/shopcontent.asp?type=Eureka+Stockade should go to
/shopcontent.asp?type=Eureka+Stockade

/shop650/shopdisplayproducts.asp?id=1&cat=Pre-Federation should go to
/shopdisplayproducts.asp?id=1&cat=Pre-Federation

DrApple

DrApple
VP-ASP New User

Australia
74 Posts

Posted - April 17 2012 :  05:54:38  Show Profile  Visit DrApple's Homepage  Reply with Quote
It was simpler than I expected.
Blank rule. Matches the Pattern, Regular expressions.
Pattern:
^shop650/(.*)

Redirect URL:
{R:1}
With append query string ticked.

DrApple

Edited by - DrApple on April 17 2012 07:27:59
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000