admin ha scritto:
There's no problem to create a regular expression to match all the URLs like this. There's a little problem to create the destination, because you need to retain just a part of the destination. THis can be done using {pregmatch} macro, but this is available only in the Enterprise version of ReDJ.
Here is an example available on the quick guide to extract part of the URL:
{preg_match 2}/([^\/]+)(\.php|\.html|\.htm)/i{/preg_match}
This returns just ".php". You could create a pattern to return just "/news-2011".
Hope this is clear enough.
Luigi
i have the Enterprise version