Page 1 of 1
rewrite problem for calguys blog
Posted: Thu Sep 08, 2016 5:57 am
by edmundspriede
good day
version 2.1.5
CGBlog 1.14.1
after turning mod_rewrite on in config.php
$config['url_rewriting'] = 'mod_rewrite';
blog module is not redirected properly. for some reason module is not added to URL so it opens home page . and drops content there.
http://www.labores7.lv/2016/08/jauns-blogs
any hints?
Re: rewrite problem for calguys blog
Posted: Thu Sep 08, 2016 8:29 am
by velden
Cleared cache in CMSMS admin panel?
Re: rewrite problem for calguys blog
Posted: Thu Sep 08, 2016 9:08 am
by scooper
Have you set a default summary page view in the options tab?
Default detail page (if no page id is specified on the URL):
Re: rewrite problem for calguys blog
Posted: Fri Sep 09, 2016 2:40 pm
by edmundspriede
the problem is when system generates url for blog page. now it looks like this:
http://www.labores7.lv/2016/08/jauns-blogs
there is missing module or controller parameter, i suppose it should look like:
http://www.labores7.lv/cgblog/2016/08/jauns-blogs
but that is not working. it works ok without rewrite so problem is when
{$entry->detail_url} is generated under rewrite rules. i should be generated correctly by system core i guess.
Re: rewrite problem for calguys blog
Posted: Fri Sep 09, 2016 2:55 pm
by edmundspriede
the problem is with url generation. now it is :
http://www.labores7.lv/2016/08/jauns-blogs
there is no module or controller parameter in link, so it fails . it should look like:
http://www.labores7.lv/CGBlog/2016/08/jauns-blogs
this link should be generated by system core somehow under rewrite rules
Re: rewrite problem for calguys blog
Posted: Fri Sep 09, 2016 4:28 pm
by scooper
There's also an option for the prefix under the options tab;
Prefix to use on all URLS from the blog module:
do you have something sensible in there?
Re: rewrite problem for calguys blog
Posted: Sat Sep 10, 2016 5:00 am
by edmundspriede
yes it has option set
Prefix to use on all URLS from the blog module: cgblog
Re: rewrite problem for calguys blog
Posted: Mon Sep 12, 2016 7:28 am
by edmundspriede
should there be record for cgblog in cms_routes table ?
there is none...