Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

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

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


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Jan 3, 2011, 04:21 PM
Steve41
 
10 posts · Dec 2010
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.
  #2  
Old Jan 6, 2011, 01:58 AM
jankph
 
90 posts · Jul 2009
ATA 3.6.4 and WP 3.1
If "any" help is OK, and if "quite a number of posts" is manageable, my slowfix would be to use a Redirection plugin for the posts that appear twice.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


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 03:25 PM.


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