Forums

Redirect old Posts in bulk, without a blanket redirect (5 posts)

  1. Patrick
    Member
    Posted 10 months ago #

    Hi there,

    My client has a site with a large number of blog posts (close to 100).

    He wants all posts which were pubished before a certain date re-directing to a single URL.

    Is this possible?

    Thanks!

  2. nsathees
    Member
    Posted 10 months ago #

    use .htaccess to do that!

  3. Patrick
    Member
    Posted 10 months ago #

    Sorry could you explain this further, don't know much habout this kind of thing!

    Thanks again!

  4. esmi
    Theme Diva & Forum Moderator
    Posted 10 months ago #

  5. Patrick
    Member
    Posted 10 months ago #

    Thanks for that, very useful - however, I'm getting an internal server error.

    What's wrong with this htaccess file ?

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    redirect 301 /real-mortgage-for-real-people http://www.mortgageadvicecenter.co.uk/mortgage-news
    redirect 301 /are-you-not-the-perfect-mortgage-applicant http://www.mortgageadvicecenter.co.uk/mortgage-news
    redirect 301 /there-are-funds-available-to-borrowers http://www.mortgageadvicecenter.co.uk/mortgage-news

    Thanks!

Reply

You must log in to post.

About this Topic