Brandon_11574
Mar 24, 2011Nimbostratus
Rewrite Rule
I am needing to do a URL Rewrite where a visitor requests http://domain.com/newFolder/ but they actually see the content from http://domain.com/oldFolder/
So when they request http://domain.com/newFolder/page1.html the address bar of their browser doesn't change, but they actually see the contents of http://domain.com/oldFolder/page1.html.
I need the rule to be able to do this for any page or image on the site, like the following examples:
http://domain.com/newFolder/page2.html <- http://domain.com/oldFolder/page2.html
http://domain.com/newFolder/image1.gif <- http://domain.com/oldFolder/image1.gif
http://domain.com/newFolder/about/index.html <- http://domain.com/oldFolder/about/index.html
http://domain.com/newFolder/images/image2.gif <- http://domain.com/oldFolder/images/image2.gif
How do you go about doing this in iRules? Any documentation on this specific type of iRule?
Thanks in advance,
Brandon Petersen