• We had to move a client’s instance of WordPress from https://website/blog/ to https://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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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).

    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 https://website/blog/ would work:

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

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

    HTTP/1.1 301 Moved Permanently
    Location: https://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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Word Press was moved. What about RSS feed?’ is closed to new replies.