-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[!] Reformatted site from https://example.com/folder/#with_index.php# to https://example.com/ #96
Comments
This is definitely a bad behavior. I suspect the double |
Oh sorry, no there is no hashtag in the filename "index.php". It is simply ./folder/index.php. |
Ah okay I understand. This behaviour is normal. Is there a reason you need to start at that location and not the root of the domain? |
Sitemaps should generally start at the domain root. Most people use sitemaps for SEO purposes, and if your domain root doesn't link to any of your webpages, your search ranking will already be underwater. |
I have a index.php in the domain root. Thats why I don't understand, that the script transforms a (random?) folder into the root. I linked a picture of the domain structure. Every folder that it should take like es, fr, helpcenter etc. it writes into the sitemap - but not "ratgeber". This is the important path it needs to write into the sitemap because it is a blog-like folder. |
Could you post a link to the site? I'm not sure what's going on, and I don't think I'll be able to figure it out without running it myself. |
@martianmaikel I deleted your comment with the links. I'll look into the issue soon. |
I guess this is an old script etc. but I just found it and wanted to share my two cents. I tried crawling a domain like https://domain.com. This would result in an error being thrown "URL is a redirect." and the script to not crawl the whole page because we have a 301 redirect to language tags e.g. /de, /en etc installed. My solution to this was simply change the code in sitemap.php from
to
which then seemed to work but only crawled the pages of one language tag. So at least it works, even if I then have to crawl the page for every language tag one after one. |
An important path for my website is reformatted and not written into the sitemap.xml.
This is the first action the script takes.
warning: [!] Reformatted site from https://example.com/folder/#with_index.php# to https://example.com/
After that the script writes every path and page in the sitemap correctly.
Edit: Path = https://example.com/folder/index.php
no hastags
The text was updated successfully, but these errors were encountered: