Hello Daniel, On 08/02/2011, at 07:59, Daniel L. Miller wrote:
> I'm porting a site from a Frontpage server to a Cherokee-based system using > Wordpress, and as a result the pages have changed. Instead of > mysite.com/superpage.htm, it's now mysite.com/superpage/. I'd like to setup > some redirect rules to support old page links and search engine caches - not > quite sure how to do it. > > I started with creating a regular expression rule, using ^/(.*)htm$ as the > match. Then in the handler rule list, I added my first rule - > page1.htm page\/ > > This didn't work. Can someone give me a little guide on where I'm going > wrong? Try this: - Add a "Regular Expression" rule with the following match: /(.+)\.html - Configure a "Redirection" handler in that rule - Add a new RegEx, and set the Substitution to: /$1 . Since the regular expression is inherited from the rule match, there is no need to write anything in the "Regular Expression" field of the dialog. .. and that's should be enough. It's fairly straight forward, isn't it? Good luck! -- Octality http://www.octality.com/ _______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
