Okay, so I have Custom Routes and Pretty URLs enabled. On most pages, all things are working fine, but on my blog pages they aren't.
As an example, the URL that displays should be:
http://gchrl.org/blogs/category/staff_blog
The URL that does display:
http://gchrl.org/blogs/?q=category%2Fstaff_blog
All the relevant code!
Here's how the routes are defined:
The .htaccess rewrite for the blogs (as generated by Couch):
As an example, the URL that displays should be:
http://gchrl.org/blogs/category/staff_blog
The URL that does display:
http://gchrl.org/blogs/?q=category%2Fstaff_blog
All the relevant code!
Here's how the routes are defined:
- Code: Select all
<cms:route name='blog_list_view' path='' />
<cms:route name='blog_post_view' path='post/{:id}' filters='page_exists=blogs.php' >
<cms:route_validators
id='non_zero_integer'
/>
</cms:route>
<cms:route name='blog_folder_view' path='category/{:id}' >
<cms:route_validators
id='title_ready'
/>
</cms:route>
<cms:route name='blog_archive_view' path='archive/{:id}' >
<cms:route_validators
id='non_zero_integer'
/>
</cms:route>
The .htaccess rewrite for the blogs (as generated by Couch):
- Code: Select all
#blogs.php
RewriteRule ^blogs$ "$0/" [R=301,L,QSA]
RewriteRule ^blogs/$ blogs.php [L,QSA]
RewriteRule ^blogs/(.+?)$ blogs.php?q=$1 [L,QSA]