Page 1 of 1
[solved] CGBlog and Pretty URLs
Posted: Mon Apr 26, 2010 1:58 pm
by catfish
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?
Re: CGBlog and Pretty URLs
Posted: Mon Apr 26, 2010 2:35 pm
by Rolf
Hi,
Set hierarchy=true in the config.php
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?
Yes, only pages which are in the menu, are shown in the sitemap.
You better use CGFeedmaker as 'sitemap' You can also submit a rss-feed to Google.
Reg. Rolf
Re: CGBlog and Pretty URLs
Posted: Mon Apr 26, 2010 10:45 pm
by catfish
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!
Re: CGBlog and Pretty URLs
Posted: Tue Apr 27, 2010 5:19 am
by owr_bgld
catfish wrote:
almost all the existing links will change.
But they are still working after setting to true
Re: CGBlog and Pretty URLs
Posted: Wed Apr 28, 2010 5:14 pm
by catfish
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.
Re: CGBlog and Pretty URLs
Posted: Wed Apr 28, 2010 5:37 pm
by Rolf
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.
Good to know: the release 2.0 of CMS Made Simple will not have the option of turning off the hierarchy!
It will be always on.
Reg. Rolf
Re: [solved] CGBlog and Pretty URLs
Posted: Wed Apr 28, 2010 6:45 pm
by catfish
Ouch.. Why?