Welcome, Guest ( Customer Panel | Login )




 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-CART 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-CART 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
0 Item(s)
$0.00