• My blog archive URLs were like:

    https://example.com/2014/03

    I changed my site’s permalink from /%postname%/ to /%postid%/%postname%/, and using Redirection plugin, I set a redirection like:

    Source URL : /%postname%/
    Target URL : /%postid%/%postname%/
    HTTP Code: 301 – Moved Permanently

    and it’s working. But the problem occurs in the archive URLs. The new archive URL generated with a /date/ basename before the dates, like:

    https://example.com/date/2014/03

    I’m trying to use the same Redirection plugin to redirect the URL, but failed:

    Source URL : /%year%/%monthnum%/
    Target URL : /date/%year%/%monthnum%/
    HTTP Code: 301 – Moved Permanently

    My blog archive URLs were like:

    https://example.com/2014/03

    I changed my site’s permalink from /%postname%/ to /%postid%/%postname%/, and using Redirection plugin, I set a redirection like: redirection 1

    and it’s working. But the problem occurs in the archive URLs. The new archive URL generated with a /date/ basename before the dates, like:

    https://example.com/date/2014/03

    I’m trying to use the same Redirection plugin to redirect the URL, but failed: redirection 2

    I then tried writing .htaccess on my own (with no htaccess writing experience) with:

    Redirect permanent https://example.com/([0-9]+)/([0-9]+) https://example.com/date/([0-9]+)/([0-9]+)

    with the help of htaccess editor and this blog. But failed too.

    How can I let my blog not to get 404 on such archive URL? I’m afraid, I’m dumb with rewrite rule till now. ??

  • The topic ‘Redirect blog archive into certain format’ is closed to new replies.