diff --git a/bin/werc.rc b/bin/werc.rc
index 00c7599..b3804d0 100755
--- a/bin/werc.rc
+++ b/bin/werc.rc
@@ -205,12 +205,10 @@ fn select_handler {
if (~ $#blogDirs 0)
blogDirs = `{basename -d $body}
- u=`{cleanname `{basename -d $uri}}
- rssuri=$baseuri^$"u^/index.rss
- atomuri=$baseuri^$"u^/index.atom
+ u=`{cleanname $baseuri^`{basename -d '/'^$uri}|sed 's,:/,://,'} # Sed recovers '/' in 'http:/' stripped by cleanname
extraHeaders=$"extraHeaders ^ \
- '
-
+ '
+
'
set_handler tpl_handler lib/feeds/html.tpl