Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-02-2008, 08:22 AM
New Pligger
Pligg Version: 9.9.0
Pligg Template: default
 
Join Date: Jan 2008
Posts: 11
Thanks: 1
Thanked 5 Times in 1 Post
Pligg Google SEO Friendly URL Rewrite Hack

A default Pligg story URL once rewritten looks like the example below.

PHP Code:

http
://www.designfloat.com/General/Joshua_Glenn_Taking_Things_Seriously/ 
What stands out is the use of _ Underscores within the URL, Google prefers the use of a hyphen/dash - as a separator and for more information on this read the Blog post by Matt Cutt’s who works for Google. This excerpt below taken from Matt’s blog post should indicate exactly why a hyphen/dash is a better separator. Visit Matt's Blog

Matt Cutts wrote:
With underscores, Google’s programmer roots are showing. Lots of computer programming languages have stuff like _MAXINT, which may be different than MAXINT. So if you have a url like word1_word2, Google will only return that page if the user searches for word1_word2 (which almost never happens). If you have a url like word1-word2, that page can be returned for the searches word1, word2, and even “word1 word2″.

So how do we fix this? luckily Adam over at Pligg Template has provided some code to clean up the Pligg URL system to be more Search Engine Friendly. We will use some of that code to achieve a nice clean URL system like below.



PHP Code:
http://www.designfloat.com/general/joshua-glenn-taking-things-seriously/ 
Open
PHP Code:
libs/utils.php and FIND 

PHP Code:
$output utf8_substr($input0240); 
REPLACE WITH


PHP Code:
$output utf8_strtolower($input0240); 
PHP Code:
libs/utils.php 
and FIND

PHP Code:
$output str_replace("\""""$output); 
REPLACE WITH

PHP Code:
$output str_replace(" - ""-"$output);
$output str_replace("_""-"$output);
$output str_replace("---""-"$output);
$output str_replace("\""""$output);
$output str_replace("--""-"$output); 
Now you have lovely clean and Google friendly URL’s note for categories you must manually create categories in lowercase from the Admin section of pligg or your htaccess won’t work. Also this change should not be applied to an existing site unless you know how to 310 redirect content that is currently indexed under the old url system or you have a very small site with very little indexed story content.

i found this
Reply With Quote
  #2 (permalink)  
Old 02-02-2008, 08:39 AM
Banned
Pligg Version: v9.9
Pligg Template: Custom Templat
 
Join Date: Dec 2007
Posts: 27
Thanks: 0
Thanked 7 Times in 5 Posts
A little backlink or some mention would have been nice

Pligg Google SEO Friendly URL Rewrite Hack : SEO Hacks

And a search.
http://forums.pligg.com/pligg-tutori...tructions.html

Last edited by pliggedit; 02-02-2008 at 09:13 AM..
Reply With Quote
  #3 (permalink)  
Old 02-02-2008, 09:04 AM
New Pligger
Pligg Version: 9.9.0
Pligg Template: default
 
Join Date: Jan 2008
Posts: 11
Thanks: 1
Thanked 5 Times in 1 Post
yes in botom i write i found this
Reply With Quote
  #4 (permalink)  
Old 02-03-2008, 04:35 AM
Cuilan's Avatar
New Pligger
Pligg Version: 9.9
Pligg Template: None
 
Join Date: Jan 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
I don't see how this mod helps seo. It does little if nothing at all for Google.
__________________
Manga community
Reply With Quote
  #5 (permalink)  
Old 02-03-2008, 08:58 AM
Banned
Pligg Version: v9.9
Pligg Template: Custom Templat
 
Join Date: Dec 2007
Posts: 27
Thanks: 0
Thanked 7 Times in 5 Posts
Quote:
Originally Posted by Cuilan View Post
I don't see how this mod helps seo. It does little if nothing at all for Google.
That's where your completley wrong

What stands out is the use of _ Underscores within the URL, Google prefers the use of a hyphen/dash - as a separator and for more information on this read the Blog post by Matt Cutt’s who works for Google. This excerpt below taken from Matt’s blog post should indicate exactly why a hyphen/dash is a better separator.

Google Employee Matt Cutts blog post about this subject.
Dashes vs. underscores
Reply With Quote
  #6 (permalink)  
Old 03-15-2008, 02:51 AM
New Pligger
 
Join Date: Jun 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Why Digg Use UNDERSCORE?

If DASH is more SEO friendly then Why Digg, indiasphere.net and other popular sites are using DASH instead of UNDERSCORE and case sensitive URL???
Reply With Quote
  #7 (permalink)  
Old 03-16-2008, 12:53 PM
Divisive Cotton's Avatar
Pligg Donor
 
Join Date: Sep 2007
Posts: 219
Thanks: 2
Thanked 12 Times in 7 Posts
Quote:
Originally Posted by y2ki View Post
If DASH is more SEO friendly then Why Digg, indiasphere.net and other popular sites are using DASH instead of UNDERSCORE and case sensitive URL???
pliggedit's right in that it should be hyphen rather than underscore. some people that it will produce a noticeable difference to search engine positions.
digg also has multiple same meta descriptions. i guess a site like digg doesn't care about seo because they have a massive user already.
Reply With Quote
  #8 (permalink)  
Old 03-16-2008, 01:14 PM
New Pligger
 
Join Date: Mar 2008
Posts: 19
Thanks: 0
Thanked 1 Time in 1 Post
hi.. I created a site 2 days ago.. and no problem with underscores...
Mine is already crawling nicely...already indexed about 50 pages in 2 days...
Reply With Quote
  #9 (permalink)  
Old 03-16-2008, 05:22 PM
New Pligger
Pligg Version: 9.9 beta
Pligg Template: default (but modified)
 
Join Date: Jan 2008
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
It's not about indexing, it's about searching. I have a ton of pages indexed and I'd like more google organic search results, here's what Matt Cutts from google said:

"So if you have a url like word1_word2, Google will only return that page if the user searches for word1_word2 (which almost never happens). If you have a url like word1-word2, that page can be returned for the searches word1, word2, and even “word1 word2″."

Indexing is great and all, but you'll get pulled up in more searches if you use dashes instead of underscores. I'm going to give this a shot and see what happens once I figure out the 301 redirect stuff... Anyone have any tips on changing the url structure and properly redirecting so I don't lose any of the current searches?
Reply With Quote
  #10 (permalink)  
Old 03-17-2008, 12:37 AM
New Pligger
 
Join Date: Jun 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by ajayrockrock View Post
It's not about indexing, it's about searching. I have a ton of pages indexed and I'd like more google organic search results, here's what Matt Cutts from google said:

"So if you have a url like word1_word2, Google will only return that page if the user searches for word1_word2 (which almost never happens). If you have a url like word1-word2, that page can be returned for the searches word1, word2, and even “word1 word2″."

Indexing is great and all, but you'll get pulled up in more searches if you use dashes instead of underscores. I'm going to give this a shot and see what happens once I figure out the 301 redirect stuff... Anyone have any tips on changing the url structure and properly redirecting so I don't lose any of the current searches?
You will have absolutely Lost current searches.
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Alexa & Google Rank #5 3dKiller My Pligg Site 36 10-27-2008 06:21 AM
Pligg integration with SMF Forum autoinc Modification Tutorials 64 05-19-2008 02:22 AM
SEO (Search Engine Optimization) Yankidank Wiki Articles 23 12-02-2007 12:27 PM


Search Engine Friendly URLs by vBSEO 3.2.0