This issue is on WordPress site.
I am aware we can change the URL naming convention in WP but I have changed my URL format from date format to simple postname followed by slug as shown below.
Old style:
www.example.com/2013/02/09/ringdroid New style:
www.example.com/ringdroid Google previously indexed my websites pages (sitemap.xml) with below format:
www.example.com/2013/04/18/hottest-gadgets-of-2013-to-include-in-your-list www.example.com/2013/02/09/ringdroid 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 someone clicks the URL for:
www.example.com/2013/02/09/ringdroid They should be redirected to:
www.example.com/ringdroid How we can write rule in .htaccess file to remove date part 2013/02/09/?
I tried something like this (Googled it), but it didn't work:
RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d