Page 1 of 1

Good mod_rewrite url

Posted: Tue Jan 23, 2007 12:12 pm
by psurrena
Is this style of url good for search engines?

Code: Select all

http://www.enumerated.org/The-Greatest-book-in-the-world/13
The mod_rewrite is

Code: Select all

RewriteEngine On
RewriteRule ^([^/]+)/([^/]+)$ /view.php?title=$1&id=$2 [L]
After the title is pulled for the article, I run this before the link

Code: Select all

$title = str_replace(' ', '-', $title);
Is this a good system?

Posted: Tue Jan 23, 2007 2:07 pm
by Christopher
Yes, long, spelled-out URLs with dashes or underscores are good for many search engines, especially those like Google that don't do much with meta tags.

Posted: Tue Jan 23, 2007 3:30 pm
by psurrena
Within reason, can there be too many words? In other words, does google stop reading after a certain length?

Posted: Tue Jan 23, 2007 3:39 pm
by Kieran Huggins
psurrena wrote:Within reason, can there be too many words? In other words, does google stop reading after a certain length?
put whatever is appropriate to your content - if you start messing about to influence google, you will likely only drop your pagerank.

Posted: Tue Jan 23, 2007 3:57 pm
by John Cartwright
psurrena wrote:Within reason, can there be too many words? In other words, does google stop reading after a certain length?
yay google 8)

http://www.boutell.com/newfaq/misc/urllength.html