Sitemap Double directory
-
Hello,
My sitemap has been “pending” for days and I wondered why.
I just noticed that all the URL’s in my sitemap are doubling my “wordpress” and “site” url.
My site is http://www.captmacks.com/store/
and
The sitemap is listing my URL’s as:
http://www.captmacks.com/store/store/about-us/
is this something I have configured incorrectly?
Thanks for your time and any help.
-
Hi gethooked23,
There’s a known issue with many plugins that output a sitemap that using any form of script-minify will destroy its content (and invalidates it). This will cause a pending status.
I’ll see if I can negate minifying actions in the next update within the sitemap, which should solve the issue.
About the double directory, I must ask you if this issue is only going on with the About us page, and if so, does it have the store as a parent?
If this happens to many more pages, please let me know.
Often, when an URL is output wrongfully at some place, it’s because the permalink settings have been fiddled with wrongfully by a plugin, which can be solved by simply saving the Permalink Settings once more; this will reset the WordPress rewrite cache.
I hope this helps! Thanks and have a great day! 🙂
Hi Sybre,
Thanks for the reply.
I have disabled W3TC, cleared cache, and reinstalled the SEO Framework.
Issue still remians.
All Pages have /store/store (double) included in the URL.
I also saved the permalinks once more.
Thanks again for helping.
Hi gethooked23,
Thank you very much for re-activating the plugin and disabling the cache.
The problem lies within your Site Settings. Your store page is effectively the home page, and The SEO Framework takes that page, stores it in cache and uses it to create all the URLs (that’s why it’s so fast ;)).
This creates the problem you’re facing, but is easily solvable :).
Follow these steps:
1. Go to your home page.
2. Select Customize in the WP Admin bar.
3. Go to “Static Front Page”.
4. Make sure a Posts Page is selected, and is not the same as the Front Page.
5. Weird URL generation is now partially fixed.The next steps:
1. Go to the WordPress Dashboard.
2. Go to Settings > General
3. Set your Site Address to your site address, without Store.
4. Weird URL generation is now fixed.I hope this helps! Feel free to enable caching if it’s fixed and keep me posted!
Thanks and have a wonderful day 🙂
Hey Sybre,
I followed each of your steps. However, my site in stored in the directory /store/, so that is why my Home and Site Address are:
http://www.captmacks.com/store
I can’t change that because that is where wordpress is installed.
Is there another work around you can think of?
Thank you for taking the time to help.
Hi gethooked23,
The WordPress Address (URL) is the location of your WordPress installation. This must indeed contain
/store/, changing this will force to you fix it through this guide.The Site Address (URL) is the location you wish your website to be accessed on, this URL can be safely changed, to not contain
/store/.I see you’ve already installed WordPress correctly to support this change :).
I also see there’s a bug with the double directory output, but it stands aside from the root cause and will be looked at to be fixed for the next update.
Be sure to clear the Sitemap transient by either:
a) Updating or publishing any post or page.
b) Saving the SEO Settings.I hope this helps! Let me know if it works out for you :).
Thanks Sybre.
I went ahead and took your advice to use a pre-existing sub-directory install. The site is installed in the /store subdirectory. I now have the website served from the website root.
I had it setup this way for almost 2 years until I changed it last week. I read that it hurts SEO. I’m not sure this is accurate.
The sitemap from your plugin is now accurate and working (no double directory). I submitted the sitemap to Google and it is now pending.
I noticed however that there are no images located in the sitemap. How can I add my images, so that they are indexed and I don’t lose those rankings? Should i use another plugin in tandem with yours?
Thanks for all your help and time. Great plugin!
Hi gethooked23,
It’s great to see you’ve got it all worked out :).
Index status
About the sub-directory installation hurting SEO, it doesn’t (directly), actually. This is because the Canonical URL pointed the root domain away from it to/store/, in the long run this could have some negative side-effects, which requires some extra-dimensional thinking.Please keep in mind that it can take up to 3 weeks for your pages to show up in Google/Bing/Yandex/etc. correctly.
About the images
Google knows how to find them without a sitemap :).
I just tested this out on a brand new WooCommerce website I set up, and all WooCommerce product images simply show up just Googling for the website’s name. The “View Image” button is linked to my CDN, and the “Visit Page” is linked to the product page, on each and every image I’ve found.The sitemap is a tool to get your pages indexed as soon as possible, images should lead from those pages and will yield the best (assumed, based on your website:) expected results.
Finding out which image goes where (manually!) is a very tough job to do, at which Google is much better at, since it indexes the URL’s at the pages the images run into.For this very reason I’ve set the Attachment pages to be discouraged from indexing, by default, within the global Robots Meta Settings. As attachment pages have no value.
When Google has indexed a page, it will also index the allowed images on the said page, so when a user hits an image within the search results, you can be sure the visitor lands on the product page.
There are many topics in the support forums on this subject if you wish to gain more information :).
Compatibility
Although, based on your website, I recommend against it… if you still wish to install a sitemap plugin with images, feel free to do so. The SEO Framework is compatible with many popular sitemap plugins, at this point I’m unsure which will be right for images.I hope this clears things up, have a wonderful day!
P.S. I found the bug (double directory) and it’s fixed in the next update (ETA 2 to 5 weeks).
I’m having the same problem , sorry if I opened a new post I did not see this one.
Even for me I got lepinia.it/home/home in the sitemap output, and I’m not using any plugin outside seo framewrk
Ok it can be solved modifying the url site in lepinia.it (and leaving lepinia.it/home as wordpress instalation directory)
but now I’m having on Google the old links “lepinia.it/home/….” referring to error 404 page because the permalinks changed
So does google will automatically delete the old links and replacing it with the new one (lepinia.it/…) ? or I have to do something to fix it?
thanks
Hi mamakin,
I’m just writing a response on your other topic :).
As stated (somewhere in this big topic) it can take up to 3 weeks for your pages to show up in Google/Bing/Yandex/etc. correctly.
I’m going to help you speed up that process on the other topic.
Also, this does not fix the 404 issue you’re facing now from back-links. I’ll get back to you on this subject on your other topic in a moment.
Thanks and have a wonderful day!
The topic ‘Sitemap Double directory’ is closed to new replies.