View Single Post
Old 10-03-2013, 09:17 AM  
EN1GMA
Confirmed User
 
EN1GMA's Avatar
 
Industry Role:
Join Date: Nov 2005
Posts: 1,251
Need help with .htaccess and 301 Redirect

Hi guys,

I need some urgent help... maybe someone can help me!

I have a wordpress website and the traffic was going fine!
But since I removed something from my URLs, I received many notifications on webmaster tools about 404 errors and my traffic has dropped from 400 daily to only 30.

My old url was:
domain.com/reviews/post_title

Now is:
domain.com/post_title

So what I did was removing the /reviews/ from the URL.

I notice that in google search results, all urls that appears is without /reviews/ but my SEO guy said that is better to do a 301 redirect so I can recover my traffic back.

I have read this advice from Matt Cutts:
https://support.google.com/webmaster...er/93633?hl=en

And he said that I need to fix this via htaccess right?
I need to get all of the listed 404s in webmaster tools 301 redirected to the proper url so that I can mark all as fixed, right?

Does anyone know the command to do that?
Only need to redirect 404 urls to new working urls.

From this:
domain.com/reviews/post_title

To this:
domain.com/post_title

Btw, this is my htaccess content:
Code:
# 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
Anyone? Please?

Thank you!

Best regards
EN1GMA is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook