Support » Fixing WordPress » Stripping all queries using .htaccess

  • I recently moved my blog from Movable Type to WordPress. My permalink structure is –

    Movable Type paginated by adding a query to the index page. For eg – where as WordPress paginates but what has happened is Google has cached my previous pagination and keeps on crawling the url’s by mixing the parameters. So the Googlebot would crawl – as well. My website has a large number of posts so this adds to a lot of unnecessary pages being crawled.

    I would want to strip all incoming queries and redirect the user to the page without the query using .htaccess.

    This is my current .htaccess
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]


    What rules should I add a 301 to any and all queries and direct the user to the page without the query.

  • The topic ‘Stripping all queries using .htaccess’ is closed to new replies.