Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can !
Moderator: General Moderators
psurrena
Forum Contributor
Posts: 355 Joined: Thu Nov 10, 2005 12:31 pm
Location: Broolyn, NY
Post
by psurrena » Tue Jan 23, 2007 12:12 pm
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?
Christopher
Site Administrator
Posts: 13596 Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US
Post
by Christopher » Tue Jan 23, 2007 2:07 pm
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.
(#10850)
psurrena
Forum Contributor
Posts: 355 Joined: Thu Nov 10, 2005 12:31 pm
Location: Broolyn, NY
Post
by psurrena » Tue Jan 23, 2007 3:30 pm
Within reason, can there be too many words? In other words, does google stop reading after a certain length?
Kieran Huggins
DevNet Master
Posts: 3635 Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:
Post
by Kieran Huggins » Tue Jan 23, 2007 3:39 pm
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.