Page 1 of 1

Issue with Pretty Urls

Posted: Tue Jul 08, 2014 6:43 pm
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

Re: Issue with Pretty Urls

Posted: Tue Jul 08, 2014 6:57 pm
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.

Re: Issue with Pretty Urls

Posted: Tue Jul 08, 2014 8:17 pm
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>

Re: Issue with Pretty Urls

Posted: Wed Jul 09, 2014 7:59 am
by anttram
Thanks for the help all resolved now.
regards Anthony