Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
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:

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]
Hi,

Can you please confirm that you have used the following statement in blog.php with the highlighted parameter?
<?php COUCH::invoke( K_IGNORE_CONTEXT ); ?>
I can now. ;)

Thanks, KK!
3 posts Page 1 of 1
cron