I'm testing out CGBlog, but the URLs aren't pretty, they look like this:
/index.php?mact=CGBlog,cntnt01,detail,0&cntnt01articleid=2&cntnt01returnid=104
How can I set up pretty URLs in CGBlog? My system has pretty URLs already for normal pages using mod_rewrite, but I can't see any module configuration options for this.
I'm also using Sitemap Made Simple, but my blog posts aren't showing up in the sitemap. Is this expected behaviour? If not, which module is at fault?
[solved] CGBlog and Pretty URLs
[solved] CGBlog and Pretty URLs
Last edited by catfish on Wed Apr 28, 2010 6:43 pm, edited 1 time in total.
Re: CGBlog and Pretty URLs
Hi,
Set hierarchy=true in the config.php
You better use CGFeedmaker as 'sitemap' You can also submit a rss-feed to Google.
Reg. Rolf
Set hierarchy=true in the config.php
Yes, only pages which are in the menu, are shown in the sitemap.I'm also using Sitemap Made Simple, but my blog posts aren't showing up in the sitemap. Is this expected behaviour? If not, which module is at fault?
You better use CGFeedmaker as 'sitemap' You can also submit a rss-feed to Google.
Reg. Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: CGBlog and Pretty URLs
Thanks for the response!
Is hierarchy=true the only way?? I have explicitly disabled that already, and if I change that now, almost all the existing links will change. Havoc will ensue.
Will check out CGFeedmaker, thanks!
Is hierarchy=true the only way?? I have explicitly disabled that already, and if I change that now, almost all the existing links will change. Havoc will ensue.
Will check out CGFeedmaker, thanks!
Re: CGBlog and Pretty URLs
But they are still working after setting to truecatfish wrote: almost all the existing links will change.
Re: CGBlog and Pretty URLs
Yes, but my site is indexed and has links, and I don't want to lose all that link juice and have to fix everything etc.
I managed to solve it for now with this change in lib/classes/module_support/modform.inc.php:
// if ($prettyurl != '' && $config['url_rewriting'] == 'mod_rewrite' && $config['use_hierarchy'] == true)
if ($prettyurl != '' && $config['url_rewriting'] == 'mod_rewrite')
That way I guess all modules use hierarchy regardless.
I managed to solve it for now with this change in lib/classes/module_support/modform.inc.php:
// if ($prettyurl != '' && $config['url_rewriting'] == 'mod_rewrite' && $config['use_hierarchy'] == true)
if ($prettyurl != '' && $config['url_rewriting'] == 'mod_rewrite')
That way I guess all modules use hierarchy regardless.
Re: CGBlog and Pretty URLs
Good to know: the release 2.0 of CMS Made Simple will not have the option of turning off the hierarchy!catfish wrote: Is hierarchy=true the only way?? I have explicitly disabled that already, and if I change that now, almost all the existing links will change.
It will be always on.
Reg. Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -