Page 1 of 1
/serendipity/include/tpl/htaccess_rewrite.tpl
Posted: Wed Sep 10, 2008 11:19 am
by Sammy
The rewrite rules break template paths because of they pin image paths to /archives for example.
Insert
Code: Select all
RewriteRule ^(.*)/templates/(.*) templates/$2 [L,QSA]
as first rule fix the problem.
The bug files against s9y 1.3.1 (april 22, 2008)
Re: /serendipity/include/tpl/htaccess_rewrite.tpl
Posted: Wed Sep 10, 2008 11:54 am
by garvinhicking
Hi!
Can you explain more in depth what you mean? You should reference template paths always via /s9ypath/templates and never only via templates/...
Inside a .tpl file, the {serendipity_getFile} smarty function takes care of this. The reason is that files not only are embedded within /archives but could also show up in any other dir structure like /plugin/tag/blabla, where a relative "templates/..." would resolve to /plugin/tag/blabla/templates, which of course also doesn't exist.
Regards,
Garvin