Results 1 to 6 of 6

Automatically rewrite custom forum links

This is a discussion on Automatically rewrite custom forum links within the General Discussion forums, part of the vBSEO SEO Plugin category; Just have a quick question. I recently purchased vBSEO and installed it. Working great and loving the new friendly URLs. ...

  1. #1
    Junior Member
    Real Name
    Matt
    Join Date
    May 2008
    Posts
    6
    Liked
    0 times

    Automatically rewrite custom forum links

    Just have a quick question. I recently purchased vBSEO and installed it. Working great and loving the new friendly URLs. I have a fair bit of custom code on my site which has forum thread and blog links on the custom home page and in the right menu. I was very pleased and surprised to see that vBSEO automatically converted these to their friendly state.

    I made a small change to the .htaccess last night for something unrelated and it seems in the process, I've broken the automatic conversion.

    The World's Most Popular Free Online Sports Games! - Stick Sports

    What's really weird though, if I access the the IP address of the site rather than the domain, I get the automatic conversion!

    The World's Most Popular Free Online Sports Games! - Stick Sports

    Help!

  2. #2
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    It's odd that it IS rewriting on the IP-based entry. Not rewriting should be the expected case.

    You should see this documentation for more info. Specifcally, you will need to wrap your custom page's links in the vbseo_any_url() function in #7
    vBSEO Functions for Extensibility

  3. #3
    Junior Member
    Real Name
    Matt
    Join Date
    May 2008
    Posts
    6
    Liked
    0 times
    If I can get it to do it without having to change my code, then that's the better path.

    If it's doing it for the IP, then it must be possible to do it for the URL yeah?

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,741
    Liked
    168 times
    Hello,

    links in the right menu have "../" in them:
    HTML Code:
    <a title="Friday Five: Tantrums, a fluke shot and tributes" href="http://www.vbseo.com/f2/blog.php?b=578" rel="nofollow">
    you should change it to:
    HTML Code:
    <a title="Friday Five: Tantrums, a fluke shot and tributes" href="blog.php?b=578" rel="nofollow">
    (when I access your site using IP it redirects me to the domain name)

  5. #5
    Junior Member
    Real Name
    Matt
    Join Date
    May 2008
    Posts
    6
    Liked
    0 times
    That's it, you've nailed it! All fixed now.

    Thanks mate.

  6. #6
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,741
    Liked
    168 times
    You are welcome

Similar Threads

  1. Replies: 1
    Last Post: 06-07-2009, 12:42 PM
  2. Automatically Create Links based on Post Content
    By insidedesign in forum General Discussion
    Replies: 3
    Last Post: 01-18-2009, 02:03 PM
  3. Replies: 4
    Last Post: 11-02-2007, 08:08 PM
  4. Automatically retrieve titles from external links
    By Giorgiotave in forum vBSEO Features Archive
    Replies: 6
    Last Post: 09-06-2007, 03:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •