aAnuVizZ
unread,Jul 10, 2010, 12:40:03 PM7/10/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to habari-users
Hi everybody, my question is how to redirect all urls with the
exception of the ending with the extension ".html" example: /weblog/
2010/07/zro.html or /weblog/2010/07/mi-first-post.html
url valid for redirection
/weblog/2010/07/zro
/weblog/2010/07/mi-first-post
url invalid for redirection
/weblog/2010/07/zro.html
/weblog/2010/07/mi-first-post.html
ReGex Custom No work!
'parse_regex' => '%^weblog/(?P<year>[1,2]\d{3})/(?P<month>\d{2})/(?
P<slug>[^/]+)(?:/page/(?P<page>\d+)?)$%i',
'build_str' => 'weblog/{$year}/{$month}/{$slug}(page/{$page}/)',
'action' => 'display_entry',
this code makes everything validate
/weblog/2010/07/zro.html valid (This should not be valid)
/weblog/2010/07/zro valid
can anyone help me find the appropriate regular expression?