Issue with Pretty Urls

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
anttram
Forum Members
Forum Members
Posts: 19
Joined: Thu Mar 08, 2012 6:19 pm

Issue with Pretty Urls

Post by anttram »

The third level web pages in the website hierarchy has no css when using Pretty Urls. I have followed the instructions given on CMSMS support pages ie added this to config

$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '.html';
$config['use_hierarchy'] = true;

and added the .htaccess file

The first level pages and second level render perfectly however the third level doesn't.

Does anyone have a solution to this?

regards
Anthony

For reference the url is http://www.aandcbolton.uk
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1968
Joined: Mon Jan 29, 2007 4:47 pm

Re: Issue with Pretty Urls

Post by Jo Morg »

You should let CMSMS manage the stylesheets, which usually has several benefits, instead of what you have.
However if you really want to keep it as you have now, you need absolute urls instead of relative ones.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Issue with Pretty Urls

Post by velden »

If you're going make those links absolute be smart and use {root_url} tag.

E.g.:

Code: Select all

<link rel="stylesheet" href="{root_url}/css/style.css"> 
	<__script__ type="text/javascript" src="{root_url}/js/jquery.flow.1.0.min.js"></__script>
anttram
Forum Members
Forum Members
Posts: 19
Joined: Thu Mar 08, 2012 6:19 pm

Re: Issue with Pretty Urls

Post by anttram »

Thanks for the help all resolved now.
regards Anthony
Post Reply

Return to “CMSMS Core”