SEO Friendly URLS
2 posts by 2 authors in: Forums > CMS Builder
Last Post: March 14, 2008 (RSS)
By avrom - March 14, 2008
Hey Dave,
I already read a post on the SEO Friendly URLs. However I really don't understand why there are trailing slashes in the URL. Is this in case a client edits fields and changes the name of them ? Can the trailing slashes not be removed ?
newsPage.php?4/ to display newsPage.php?4
Thanks so much for the time. Cheers :)
Avrom
I already read a post on the SEO Friendly URLs. However I really don't understand why there are trailing slashes in the URL. Is this in case a client edits fields and changes the name of them ? Can the trailing slashes not be removed ?
newsPage.php?4/ to display newsPage.php?4
Thanks so much for the time. Cheers :)
Avrom
Re: [virgodesign] SEO Friendly URLS
By Dave - March 14, 2008
The idea is to create a url that looks like a directory, like this: newsPage.php/news_title_here-4/ or this newsPage.php?news_title_here-4/ If you have $options['titleField'] set it will use that fieldname value in the link.
There's a few ways to remove it. To hardcode links like you specified you could just replace <?php echo $record['_link'] ?> with: newsPage.php?<?php echo $record['num'] ?>
Or to remove it in the code you could search for (and remove) this in /lib/viewer_functions.php:
Hope that helps!
There's a few ways to remove it. To hardcode links like you specified you could just replace <?php echo $record['_link'] ?> with: newsPage.php?<?php echo $record['num'] ?>
Or to remove it in the code you could search for (and remove) this in /lib/viewer_functions.php:
. "/"
Hope that helps!
Dave Edis - Senior Developer
interactivetools.com
interactivetools.com