Pablo Estrada
Pablo Estrada

Reputation: 3452

Removing pemalinks with date structure on wordpress

I have a wordpress blog and I´ve been working a little bit on my SEO. I passed my site through http://www.siteliner.com/

and found that I have some "duplicated" content, which are the date links from some posts I´ve made.

I have my permalinks setting as follows

enter image description here

I don´t understand why those links still appear on my website since I just want them to be accesed by post name.

Here are the results of siteliner:

enter image description here

as you can see there are some posts with the year and month of publication that take me exactly to the same place as the post name.

Can anyone help me fix this issue?

Thank you very much :)

Upvotes: 0

Views: 33

Answers (1)

Laura Harker
Laura Harker

Reputation: 26

The date links you see aren't actually extraneous permalinks to your posts. They're part of the built-in Wordpress archives. Pages with the format /year, /year/month, and /year/month/day are being created for every time period you have posts.

If you want to disable them, one easy option is with the Wordpress SEO Plugin by Joost de Valk. You can also add this to a plugin to redirect any requests for non-admin or regular pages:

function wpa_parse_query( $query ){
    if( !is_admin() && !$query->is_page ) wp_redirect( home_url() );
}
add_action( 'parse_query', 'wpa_parse_query' );

Or add manual redirects to your .htaccess.

(Taken from here).

Upvotes: 1

Related Questions