To Fix HTTP 400-499 error codes with 301 redirects in .htaccess file

Posted by user2131844 on Pro Webmasters See other posts from Pro Webmasters or by user2131844
Published on 2013-06-28T09:21:04Z Indexed on 2013/06/28 10:30 UTC
Read the original article Hit count: 276

Google previously indexed my websites pages (sitemap.xml) with below format:

www.domain.com/2013/04/18/hot?test-gadgets-of-2013-to-include-in-?your-list
www.domain.com/2013/02/09/rin?gdroid

I have resubmitted the sitemap but there are still 404 errors in Google/Bing engine.

Could you please help me to write 301 redirects rule in .htaccess file so when some clicks the URL for:

www.domain.com/2013/02/09/rin?gdroid

They should be redirected to:

www.domain.com/rin?gdroid

How we can write rule in .htaccess file to remove date part 2013/02/09/?

© Pro Webmasters or respective owner

Related posts about htaccess

Related posts about mod-rewrite