So we’d want to change the host (which is easy enough), however we want to drop the /pages/index.htm part of the original URI while maintaining anything after that; which in this example is /2013/08/15/mypost
Is the “/pages/index.htm” portion static (always the same), or variable? Is there a pattern to the URL scheme other than removing the top two levels from the path?
Thank you for your immensely speedy response both!
Yes correct Kevin, that part is always static.
Hmm no I don’t suppose there is, all of this part: http://originalurl.com/pages/index.htm would need stripping and replacing with the new domain (carrying through the remainder of the original URI, if that makes sense)?
Nitass; wouldn’t that need each and every potential URI inputting in to the iRule if you’re hard coding the dates, etc?
I actually need to go from this "URL.com - MediaOptions to URL.com - MediaOptions by simply removing a single piece of the uri “restricted” but leaving everything before and after it.
I basically made a list of the 6 different variations they were looking for and repeated everything but the actual word in the directory structure they were looking for.