Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
Hi,

Is it possible to disable pretty URL behaviour for specific URLs (without any redirections) but still define it as a template using <?php require_once( 'couch/cms.php' ); ?> and <?php require_once( 'couch/cms.php' ); ?>. Thing is we need to generate a XML sitemap yet use pretty URLs as well.

I noticed that once you have enabled pretty urls, it redirects any template even without adding them to the .htaccess. I'm sorry, I'm not very familiar with COUCH. Thanks very much.

-AG
Hi AJ :)

While you can create XML sitemaps that do not end in '.php' (i.e. have prettyURls), if you do want to disable prettyURLs from a certain template please do the following -

Normally we use the following statement at the very end of all Couch managed templates
<?php COUCH::invoke(); ?>

Modify the statement above the following for the templates you do not want to use prettyURLs with -
<?php COUCH::invoke(1); ?>

Now you should be able to access that template using its .php name without it getting automatically redirected to its prettyfied version.

Hope this helps.
KK wrote: Hi AJ :)

While you can create XML sitemaps that do not end in '.php' (i.e. have prettyURls), if you do want to disable prettyURLs from a certain template please do the following -

Normally we use the following statement at the very end of all Couch managed templates
<?php COUCH::invoke(); ?>

Modify the statement above the following for the templates you do not want to use prettyURLs with -
<?php COUCH::invoke(1); ?>

Now you should be able to access that template using its .php name without it getting automatically redirected to its prettyfied version.

Hope this helps.



Yep, that did the trick. Wow guys, this is a really good CMS. I'm very glad I got to know this. And how you handle the forum is off the hook. Thanks so much. Good luck.
You are welcome AG :)
I'm glad you liked our little CMS.
4 posts Page 1 of 1