• I’ve yet to find a conclusive, working solution to this.

    We have some Flash websites that use WordPress as the CMS. The WordPress install functions as the mobile site. But when someone wants to subscribe to the RSS, they end up going to the WordPress install news pages instead of the full site. I want to change the RSS permalinks to go to the Flash version of the site, which would be:

    domain.com/#/news-item-title

    instead of what it currently does:

    domain.com/mobile/news-item-title

    I have a redirect that will point mobile users to the right place anyways, and I’m ok changing the core files in this case.

    Any ideas on where I need to make the change?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    An .htaccess redirect would be the cleanest.

    If the titles are the same then…

    # redirect all wordpress feeds to feedburner
    RewriteCond %{REQUEST_URI}      ^/?(feed.*|rss.*|comments.*)  [NC]
    RewriteCond %{HTTP_USER_AGENT} !^.*(FeedBurner|FeedValidator) [NC]
    RewriteRule ^feed/?.*$          https://domain.com/#/$1  [L,NC,R=302]
    RewriteRule ^rss/?.*$           https://domain.com/#/$1  [L,NC,R=302]
    RewriteRule ^wp-rss2.php        https://domain.com/#/$1  [L,NC,R=302]

    I may be wrong about the ?.*$ bit — it might need to be (?.*$) or something similar.

    Thread Starter fitzpatrick512

    (@fitzpatrick512)

    I have a php redirect that works with a mobile detection script (using WPtouch) already. Ideally I’d be changing the link before the RSS spits it out, do I think i need to do it through WP’s core files. This way no one ever sees the mobile links unless they are ON a mobile browser.

    Thanks for your input, I’ll investigate your idea further, and I agree a .htaccess solution would be cleanest, but since I’m already counting on PHP redirects anyways, I might go that route.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    I wouldn’t suggest playing with core files. It makes upgrades gnashy-teethy.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘change RSS permalinks’ is closed to new replies.