Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

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

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

Old Jan 3, 2011, 05:21 PM
10 posts · Dec 2010
For some reason, I've quite a number of posts showing 2 urls in Google Webmaster tools. e.g:

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]

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.
Old Jan 6, 2011, 02:58 AM
93 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.


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 04:02 PM
Duplicate widgets in dashboard sober Sidebars & Widgets 3 Oct 10, 2010 06:45 PM
Very slow loading-possible problem with .htaccess? paulae Atahualpa 3 Wordpress theme 13 Mar 28, 2009 09:17 PM
Can't find solution to problem - can I just start over? bjt1t2t3 Atahualpa 3 Wordpress theme 4 Mar 21, 2009 01:10 PM

All times are GMT -6. The time now is 11:18 PM.

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