Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

Categories

In this Discussion

Who's Online 11

CurtisOdenPewPewKRippconnectrgarygaryleafmonster +5 guests

RSS Redirect

I've moved my forum from Master to RC. I've noted that all of the feeds have moved. Is there a pattern to their movement that I could apply to the .htaccess file?
Tagged:

Comments

  • TimTim
    Posts: 1,573
    There is a pattern indeed.

    Where the location used to be:forum.com/rss/(feed content location)
    It is now: forum.com/(feed content location)/feed.rss
    For example, http://www.forum.com/rss/discussions becomes http://www.forum.com/discussions/feed.rss


    Vanilla Forums Senior Developer [GitHub, Twitter, About.me]

  • TimTim
    Posts: 1,573
    And come to think of it, you can use our new Routes system to do the same job without having to resort to .htaccess.

    Like this: http://imgur.com/qnH1N.jpg

    Vanilla Forums Senior Developer [GitHub, Twitter, About.me]

  • Posts: 47
    Thanks but that results in:

    atal Error in PHP.Gdn_ErrorHandler();

    Undefined offset: 1
    The error occurred on or near: /home/ben/forum.wbpsystems.com/html/library/core/class.routes.php
    119: $Destination = $this->_FormatRoute($Destination, 'Internal');
    120:
    121: // If Destination is an array with no keys...
    122: if (!array_key_exists('Destination', $Destination))
    123: $Destination = $this->_FormatRoute($Destination[0], $Destination[1]);
    124:
    125: return $Destination;
    126: }
    127:
    Backtrace:
    [/home/ben/forum.wbpsystems.com/html/library/core/functions.error.php:157] PHP::include();
    [/home/ben/forum.wbpsystems.com/html/library/core/functions.error.php:157] PHP::Gdn_ExceptionHandler();
    Variables in local scope:
    [Destination] array (
    0 => '/$1/feed.rss',
    )
  • TimTim
    Posts: 1,573
    @tazz_benn Hm, not really sure how that managed to happen, but i'll commit a fix to take care of that edge case. Thanks for the feedback.

    Vanilla Forums Senior Developer [GitHub, Twitter, About.me]

  • TimTim
    Posts: 1,573
    @tazz_ben Done with the commit. See if that solves it?

    Vanilla Forums Senior Developer [GitHub, Twitter, About.me]

  • Posts: 47
    Well, the good news is it doesn't produce an error. But that bad news is it doesn't work.

    When you try to create the route, it shows up as a type of "internal" and editing it doesn't fix it. When you type in the address of one of the rss feeds it simply takes you to that page (not the feed).
  • TimTim
    Posts: 1,573
    It sounds like your code is only half up to date. Does your Add Route box look like this?

    http://imgur.com/IWScK.jpg

    Vanilla Forums Senior Developer [GitHub, Twitter, About.me]

  • Posts: 47
    yes, I'm not saying that I can't select the box; I'm saying that it doesn't save that way.

    I downloaded an entire new RC after you posted and replaced all files; ran the update to the DB structure you introduced in that update and cleared the cache.

  • TimTim
    Posts: 1,573
    Found a bug... fixed it. Care to try again?

    Vanilla Forums Senior Developer [GitHub, Twitter, About.me]

  • Posts: 47
    Victory!
  • TimTim
    Posts: 1,573
    Awesomesauce :D

    Vanilla Forums Senior Developer [GitHub, Twitter, About.me]

Sign In or Register to comment.