RSS to HTML Converter Problem: Local Links in RSS

Discussion in 'XML & RSS' started by rovshan1, Jun 8, 2008.

  1. #1
    This is not a problem with an RSS converter or an RSS.
    This is natural that webmasters, bloggers use local links at their sites.
    But when an RSS converts into HTML at my site, any local links in posts remain the same, local.

    Example: <a href="/taft-street-inc">Taft Street Winery</a>.

    And now, when Google-bot comes to my site, crawls it and can not find these pages, it penalizes my site (Google crawls and indexes it much slower).

    So which PHP function must I insert into the converter to turn local links into absolute?
    To turn this "/taft-street-inc” into this “http://www.intowine.com/taft-street-inc” depending on an RSS url.

    My RSS to HTML converter is here: http://feeds.soawesometips.com/rss/reader1/index.php
    I call it this way:

    <?php
    require_once 'http://feeds.soawesometips.com/rss/reader1/index.php?rss_url=PUT-RSS-URL-HERE';
    ?>

    Example page with an RSS local link is here (“Taft Street Winery” link, it may disappear soon):

    http://feeds.soawesometips.com/Comp...ine/intowine.com-California-Sonoma-County.php

    Any help is valuable. Thank you.
     
    rovshan1, Jun 8, 2008 IP
  2. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #2
    Edit the converter so that if the link doesn't contain "http", add the website URL to the link.

    Peace,
     
    Barti1987, Jun 8, 2008 IP
  3. rovshan1

    rovshan1 Well-Known Member

    Messages:
    180
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    128
    #3
    This is a simple script and I need to “worsen” it. It displays RSS feeds just as they are: with links to other pages, images and videos.

    So which PHP function must I add or modify in the converter to make it display only text in post descriptions?

    The RSS to HTML converter is here: http://feeds.soawesometips.com/rss/reader1/index.php (only 4 Kb)
     
    rovshan1, Jun 9, 2008 IP