Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Not a theme problem...but need htaccess solution for duplicate posts


 
Prev Previous Post   Next Post Next
  #1  
Old Jan 3, 2011, 04:21 PM
Steve41
 
10 posts · Dec 2010
Not a theme problem...but need htaccess solution for duplicate posts

For some reason, I've quite a number of posts showing 2 urls in Google Webmaster tools. e.g:
/this_is_a_post/1447/
/this_is_a_post/

My permalink structure is /%postname%/%post_id%/

This is my current htaccess

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Both types of urls resolve, but to avoid duplicate issues and keep all my links resolvable, I want to 301 redirect all url requests that include the post_id, and just return the postname in the url i.e. /this_is_a_post/

Searched the web but haven't found a htaccess rule that quite works. Appreciate any help.
 

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to find plugin to duplicate this ..... nickcroker Plugins & Atahualpa 1 Dec 2, 2010 03:02 PM
Duplicate widgets in dashboard sober Sidebars & Widgets 3 Oct 10, 2010 05:45 PM
Very slow loading-possible problem with .htaccess? paulae Atahualpa 3 Wordpress theme 13 Mar 28, 2009 08:17 PM
Can't find solution to problem - can I just start over? bjt1t2t3 Atahualpa 3 Wordpress theme 4 Mar 21, 2009 12:10 PM


All times are GMT -6. The time now is 02:33 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.