SEO friendly URL's

4 posts by 2 authors in: Forums > CMS Builder
Last Post: January 19, 2009   (RSS)

Re: [chassa2556] SEO friendly URL's

By Dave - January 15, 2009

Hi Charles,

The simplest SEO urls can be done by adding this option to your viewer code:
'useSeoUrls' => true,

And then setting a "filename field" under Admin > Section Editors > Viewer Urls

Then you'll get urls like this:
http://www.myurl.org.uk/servicesDetail.php/your-title-here-5/

Note that SEO urls look like subdirectories to the browser and you need to use absolute urls (starting with http:// or /) for your links or you'll get broken links.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] SEO friendly URL's

Hi Dave

Note that SEO urls look like subdirectories to the browser and you need to use absolute urls (starting with http:// or /) for your links or you'll get broken links.


Could you expand on this how would this work with a listing/detail page scenario? We tried all the above and it worked but it broke the link to the CSS etc. the link was '_link' type php echo as in the cmsb code.

Re: [chassa2556] SEO friendly URL's

By Dave - January 19, 2009

Hi Charles,

CMS Builder stores the urls to the section viewers under: Admin > Section Editors > Viewer Urls. You'll need to update those urls to start with / or http://.

Same thing with your css files. You'll need to link to them starting with / or http://.

It's the same as if you had an html file in a subdirectory. You need to link "up" to files in the root with http:// or / or ../ (to go up one directory).

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com