vBulletin SEO Forums

SEO

vBulletin Search Engine Optimization

Buy vBSEO Now! HACKER SAFE certified sites prevent over 99.9% of hacker crime.
ne nw
New vBSEO Discount Level for Network Builders Meet vBSEO Team in New York (Nov. 3rd & 4th) vBSEO 3.2.0 GOLD Has Landed Success with vBSEO = 600ore Web Visitors + $1400 in a Day! Crawlability Inc. Files for SEO Technology Patent
se sw

str_replace for URL

This is a discussion on str_replace for URL within the General Discussion forums, part of the vBSEO Google/Yahoo Sitemap category; I made a modification on the VBSeo hook ( as described by Oleg here ) and the urls like /foro/noticias-breves-f55/12345-thread-title.html ...

Go Back   vBulletin SEO Forums > vBSEO Google/Yahoo Sitemap > General Discussion

Enhancing 80 million pages.

Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-06-2008, 04:38 PM
amenadiel's Avatar
Senior Member
Big Board Administrator
 
Real Name: Felipe CHW
Join Date: Feb 2007
Location: Santiago, Chile
Posts: 162
str_replace for URL

I made a modification on the VBSeo hook (as described by Oleg here)
and the urls like

/foro/noticias-breves-f55/12345-thread-title.html

are now just

/noticias/12345-thread-title.html


I'd like to have vbseo sitemap plugin to rewrite the same as vbseo global hook. ¿Where should I do that? ¿Should I tamper with vbseo_sitemap.php? ¿vbseo_sitemap_functions.php? ¿A plugin perhaps?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 09-06-2008, 05:53 PM
amenadiel's Avatar
Senior Member
Big Board Administrator
 
Real Name: Felipe CHW
Join Date: Feb 2007
Location: Santiago, Chile
Posts: 162
Edit: Made it. I had to perform an str replace on vbseo_sitemap_functions.php for the add url function.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 09-06-2008, 06:08 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,433
Blog Entries: 1
You should modify vbseo_sitemap_functions.php file for that:
FIND:
PHP Code:
vbseo_add_url($url$priority$lastmod$freq); 
ADD ABOVE:
PHP Code:
$url str_replace('/foro/noticias-breves-f55/''/noticias/',$url); 
Edit: ok, great
__________________
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

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



All times are GMT -4. The time now is 05:00 PM.


Powered by vBulletin Version 3.8.0 Beta 3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.5 ©2008, Crawlability, Inc.