Paul B - 19 February 2009 06:06 AM
Thanks Chad. This solved my CSS issue after installing the lg.htacccess extension.
Yes, it also solved my similar CSS problem (stylesheets not being applied). The double “pipe” character is a definite problem.
Somewhere in this thread, Leevi was talking about updating LG .htaccess Generator to fix this by doing something like this:
RewriteCond %{REQUEST_URI} ^/({ee:template_groups}{if pages}|{ee:pages}{/if}|members|P[0-9]{2,8}) [NC]
That would be great, but it won’t work. I tried it and it produces a 500 internal server error for both front and back ends. That’s because the EE “if” tags are not parsed correctly (or at all), and they end up as literals, with curly braces, in the generated .htaccess file, and that takes your site right down.
So… if you don’t use the Pages module, and know you never will, you can leave the “ee:pages” tag in there with no pipe character, or you can just remove the “ee:pages” tag (and the extra pipe) altogether. However, if you ever do use the Pages module, your site will break if the tag is in there with no pipe, or if you don’t use the tag at all, you won’t get automatic generation of those pages by the LG extension.
Unless Leevi comes up with a way to parse “if” tags in this extension, you’ll have to make a note to yourself somewhere to add the tag if you ever use the Pages module.
Leevi, thanks for a great extension that allowed me to stop apologizing for “index.php” in EE URLs. That, plus adopting a templating structure that consists of a template group for every site section with only an index in each one (plus a template group of embeds), and I finally have what I’ve long wanted for URLs:
http://domain.com/site-section/site-page/
Yay.