Skip to main content

New answers tagged

3 votes

Why is Google indexing both versions of my WordPress URLs (with and without trailing slashes)?

At the very least, you can try adding this to your .htaccess: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*[^/])$ /$1/ [L,R=301] Secondly, check for conflicts between plugins, ...
Evgeny Yudin's user avatar
2 votes

Why is Google indexing both versions of my WordPress URLs (with and without trailing slashes)?

That bit of the report just says that the non-trailing-slash page exists on your site and that it returns a 301, and so Google are not indexing it for that reason (the section is headed "Why are ...
RichardB's user avatar
  • 2,863
0 votes

Why is Google indexing both versions of my WordPress URLs (with and without trailing slashes)?

Google is doing this because you have used both versions and both versions result in a valid response. The solution is Use only one version Use rewrite to change one to another. This can be done in ...
Rohit Gupta's user avatar
  • 2,574

Top 50 recent answers are included