Forums

Word Press was moved. What about RSS feed? (3 posts)

  1. zerodegreesk
    Member
    Posted 5 years ago #

    We had to move a client's instance of WordPress from http://website/blog/ to http://blog.website/

    We're worried about people who subscribed to the old blog's RSS feed. Would there be a way for me to create a hard-coded RSS feed for the old location? My idea is to just create a static RSS feed that says "blog has moved, go here instead".

    Or does anyone have any other suggestions to fix this?

    Thanks.

  2. Xander
    Member
    Posted 5 years ago #

    You could do a simple redirect with .htaccess perhaps... from a user experience perspective, soft transitions are better than a call to action (which will usually be ignored).

  3. neror
    Member
    Posted 5 years ago #

    The "proper way" to do this would be to respond with a 301 Permanently Moved at the old url. Assuming you're using apache, a mod_rewrite. Something like this in an .htaccess file in the docroot for http://website/blog/ would work:

    RewriteEngine on
    RewriteRule ^feed/$ http://blog.website/feed/ [R=permanent,L]

    This tells apache to respond with something similar to the following:

    HTTP/1.1 301 Moved Permanently
    Location: http://blog.website/feed/

    Any decent feed reader will recognize the 301, redirect to the new url, and update itself to use the new url in the future.

    Check out the mod_rewrite docs and the status code section of the HTTP spec for more info.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags