Mobile app version of vmapp.org
Login or Join
Candy875

: Why are URLs with my domain name at the end showing up in analytics? I have a multi-language WordPress site that has been live since the last 3 months and today when I checked Analytics,

@Candy875

Posted in: #Google #GoogleAnalytics #Indexing #Url

I have a multi-language WordPress site that has been live since the last 3 months and today when I checked Analytics, I saw a lot of weird URLs:

/menswear-fashion-autumn-winter-2013-2014/www.domain.com

/fashion-history/1960s-1970s/www.domain.com

/fashion-latest-news/www.domain.com

/it/fashion-history/1920s-1930s/www.domain.com

/fashion-history/1950s-1960s/www.domain.com

/fashion-history/1940s-1950s/www.domain.com


As you can see, my domain name is coming after the end of the URL. Of course, these URLs do not exist on the site and are leading to 404 errors.

Now there is an older site from which this one was migrated and that site is still live. Could that be the problem? Also for reference here is my .htaccess:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# 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

AddType video/mp4 .mp4 .m4v
AddType video/webm .webm
AddType video/ogg .ogv


What exactly is happening with these URLs and how do I fix it?

10.04% popularity Vote Up Vote Down


Login to follow query

More posts by @Candy875

4 Comments

Sorted by latest first Latest Oldest Best

 

@Alves908

Make sure in your DNS Manager you have configured for both mydoain.com and mydomain.com
Normally in godaddy
@ points to --> to some Ip

www points to --> @

in aws Route 53 make sure to have entry for www like

*.mydomain.com --> Ip adresss

This is generally the A record

10% popularity Vote Up Vote Down


 

@Mendez628

You can do this by doing the following steps:


Login to Google Analytics
Click admin (upper right corner)
Click on the profile associated with the domain that you're having an issue with.
Click profile settings
Check the "Default Page" field, if it has your domain name in there, delete it and press apply.


Why?

The Default Page field is for the index.html, index.php or similar. This field allows GA to treat yourdomain.com/index.php as the same page as yourdomain.com/.

10% popularity Vote Up Vote Down


 

@Murphy175

I too have faced the same issue with my Wordpress sites and in Google Webmaster it appears as 404 error.

As far I got to know is, this is the case of URL masking. In short you site has been attacked.

I overcome this by reinstalling the wordpress site. Do not use any .php or any code file from previous installation. Reinstall the site through database.

10% popularity Vote Up Vote Down


 

@Heady270

It could happen if you have link like this in your template that is missing the
<a href="www.domain.com">


It could happen if you use your domain name in a javascript string. Some bots are known to try to crawl all javascript strings as if there were urls.

var site = 'www.domain.com';


I found your site using the allinurl: operator and google and looked through the source code for couple of the pages. I didn't find anything that resembled either of the above senarios.

It could happen if redirects from the old domain were not working in some cases. I'd think you would be able to test the redirects and find that problem.

So, I'm not sure what is causing it. If you want to fix it, you can redirect away from any url that ends in your domain name with a rewrite rule. The following will strip off the "www.domain.com" bit and redirect to a url without it.

RewriteRule (.*)www.domain.com$ [R=301,L]

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme