问题原文
原帖链接 · Amit Erandole · CC BY-SA 3.0
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?
已采纳解答
原帖链接 · Richard Perry · CC BY-SA 3.0
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 http://yourdomain.com/index.php as the same page as http://yourdomain.com/.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
