Forums

Help needed with .htaccess redirects (2 posts)

  1. danieltamy
    Member
    Posted 3 months ago #

    Hi,

    I've just started a new blog recently and unfortunately the old wordpress sample pages/ posts (installed along with WordPress) have been indexed by Google. I would like to redirect all to the homepage by modyfing the .htaccess file. After several attempts the redirects still don't work. See below the content I have in the .htaccess file.

    # BEGIN WordPress
    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    
    Redirect 301 http://www.augmentedtomorrow.com/hello-world/ http://www.augmentedtomorrow.com/
    Redirect 301 http://www.augmentedtomorrow.com/hello-world/?share=google-plus-1 http://www.augmentedtomorrow.com/
    Redirect 301 http://www.augmentedtomorrow.com/sample-page/ http://www.augmentedtomorrow.com/
    Redirect 301 http://www.augmentedtomorrow.com/2011/06/ http://www.augmentedtomorrow.com/
    Redirect 301 http://www.augmentedtomorrow.com/hello-world/?replytocom=1 http://www.augmentedtomorrow.com/
    Redirect 301 http://www.augmentedtomorrow.com/2011/05/ http://www.augmentedtomorrow.com/
    Redirect 301 http://www.augmentedtomorrow.com/?p=1 http://www.augmentedtomorrow.com/
    
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    
    </IfModule>
    
    # END WordPress
  2. danieltamy
    Member
    Posted 3 months ago #

    Here is the pastebin.com link for the code http://pastebin.com/QRVr8bYx

Reply

You must log in to post.

About this Topic