Forum Moderators: rogerd & travelin cat

Message Too Old, No Replies

WP is generating duplicate pages with "double" urls?

         

TomSnow

2:07 am on Jan 29, 2019 (gmt 0)

5+ Year Member Top Contributors Of The Month



Almost every URL on the site I just took over has a duplicate page that is just the original URL with a forward slash and then the url again. Sometimes with a -2 at the end.

That URL sends to a page with the same title tag and image as the original URL, but no content. I'm not sure if Wordpress is doing this or what.

Anyone else ever seen this before?

TorontoBoy

2:45 am on Jan 29, 2019 (gmt 0)

5+ Year Member Top Contributors Of The Month



I have not seen this before. Check your Permalink settings. Check to see if someone has messed with your .htaccess. Wordpress has a standard htaccess [codex.wordpress.org...] :
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

not2easy

3:34 am on Jan 29, 2019 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



WordPress only does what you tell it to do, so it is taking the instructions found in the Settings. If you are not able to edit your Settings > General URLs as posted previously here: [webmasterworld.com...] you need to straighten that out to be able to change the Permalink structure. These problems are related, not separate.

Are there additional efforts to rewrite WordPress URLs using .htaccess - other than the default WP code as TorontoBoy posted above?

TomSnow

5:43 pm on Jan 29, 2019 (gmt 0)

5+ Year Member Top Contributors Of The Month



Hi guys,

Thanks for the insight!

To figure this out I need to ask our Marketing Director who was here before me, as well as our developer.

We'll look at the htaccess and follow up with you just in case that info might come in handy some day.

TomSnow

6:25 pm on Jan 29, 2019 (gmt 0)

5+ Year Member Top Contributors Of The Month



The plot thickens...

When I inspect one of these mysterious duplicate pages in GSC, it says the URL is not indexed.

But it's still showing up in SERPs?....