Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 03:29:14 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: news module item number in URL  (Read 911 times)
adiwillow

Offline Offline

Posts: 64


« on: May 23, 2008, 01:14:39 PM »

Hi all, is there any way to get rid of the item number in the news URL? or at least put a '-' before it or something?

Curenntly my url's are...

www.site.com/posts/news-title7.php

This isnt too good for SEO, so can the number be got rid?
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7973



WWW
« Reply #1 on: May 23, 2008, 02:27:26 PM »

Hello,

Quote
This isnt too good for SEO

Why?

Matthias
Logged
adiwillow

Offline Offline

Posts: 64


« Reply #2 on: May 23, 2008, 03:07:30 PM »

because if you are using news pages specifically as landing pages (as i and many others do) the the page titles (which appear in the url)  of the pages are your main keyterms.
Adding a number directly after the last word will effectively render that last word useless !

in the case of
www.site.com/blue-widgets7.php

'widgets7' is a completely useless word.
« Last Edit: May 23, 2008, 03:16:08 PM by adiwillow » Logged
chio
WebsiteBaker Org e.V.

Offline Offline

Posts: 2264


« Reply #3 on: May 23, 2008, 04:07:18 PM »

modules/news/save_post.php ca line 65:
// Work-out what the link should be
$post_link = '/posts/'.page_filename($title).$post_id;


$post_link = '/posts/'.page_filename($title) .'-'. $post_id;
Logged

*weg*
adiwillow

Offline Offline

Posts: 64


« Reply #4 on: May 27, 2008, 05:45:51 PM »

ah of course.. obvious.. thanks Smiley
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!