EE 1.6.0 Build: 20070815
I want friendly URLs with working 404 pages. Just now getting around to figuring out how to make the 404 page work. It breaks on my category pages and other places where the template group is not explicitly in the URL.
My .htaccess is like so:
RewriteEngine on
RewriteCond $1 !^(images|d20advanced|downloads|scripts|dnd4sys|themes|img|style|favicon\.ico|robots\.txt|index\.php|index\.html|teaser.jpg|path.php|labels.rdf) [NC]
RewriteRule ^(.*)$ /index.php/$1 [L]I’m using the following code to generate the links for the categories on a post page:
Tags: {categories}<a href="http://{path=site_index}">{category_name}</a> {/categories}I obviously need to get my templategroup name in there, but it’s not clear how to do that. No matter where I insert, the final result isn’t correct due to the way the engine is creating the links.
I thought that if I replaced the path=site_index part that would work, but it’s that exact code that seems to generate the correct category URL. I can’t prepend or append the template group name. Is there another method?
I’m sure this is simple, but it’s eluding me… 😊
Here’s a link to the post page if you would like to see the links in action.
Note that I have the 404 turned off atm.