• I have a problem due to an old error of programmation of my site.
    Due to this error in Google Webmaster I have more than 10.000 errors.

    The error is in the feed link of the article and the goal is to redirect a lot of this kind of wrong permalink
    https://www.mysitename.it/000000000/permalinkofthepost<strong>/</strong>/feed/
    to this correct structure of permalink
    https://www.mysitename.it/00000000/permalink/feed/

    The structure of my permalink is
    /%year%%monthnum%%day%%post_id%/%postname%/

    In practice I have to delete one / (slash) before the feed

    If is possible I need to use the redirect 301 rule at the top of my htaccess instead Mod rewrite because i have some lines of other redirects in my WordPress htaccess file.
    Thanks in advance
    Fabrizio

Viewing 3 replies - 1 through 3 (of 3 total)
  • /%year%%monthnum%%day%%post_id%/%postname%/ is improper

    try:

    /%year%/%monthnum%/%day%/%post_id%/%postname%/

    Although I would just use /%postname%/

    Then include a sitemap and have the bots re-index.

    Feed is for RSS.

    Redirects are not going to work with an improper permalink setup.

    Thread Starter Fabrizio Azzali

    (@fabrizio-azzali)

    Hi I can’t change my permalink structure.

    This permalink structure is approved also by Google News where my site is an official source.

    I have over than 2000 pages in the Google index and build a new sitemap with 2000 lines is almost impossible.

    I guess building out the redirects in .htaccess would amount to a similar chore? The original post seems incorrect, and at best unclear.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Redirect 301 in htaccess’ is closed to new replies.