delete image from server, fix google error for that with htaccess - .htaccess

i delete one image from my page and from google now i get error: "image not found".
What i need to do, that google forget this picture?
I need add 404 eroor with this picture link in .htaccess?
Redirect 404 /my-picture.png
This fix my problem?

By default server should throw 404 when missing files are requested for. So it will be removed from Google index on subsequent crawls.
If you want to get it removed immediately, create a Google Webmaster account, add your site to dashboard. Once done you can submit all images/URLs which are not there anymore to Google and it will be removed from Google Search index.

Related

Google couldn't fetch my sitemap.xml file

I've got a small flask site for my old wow guild and I have been unsuccessful in getting google to read my sitemap.xml file. I was able to successful verify my site using googles Search Console and it seems to crawl it just fine but when I go to submit my sitemap, it lists the status as "Couldn't fetch". When I click on that for more info all it says is "Sitemap could not be read" (not helpful)
I originally used a sitemap generator website (forgot which one) to create the file and then added it to my route file like this:
#main.route('/sitemap.xml')
def static_from_root():
return send_from_directory(app.static_folder, request.path[1:])
If I navigated to www.mysite.us/sitemap.xml it would display the expected results but google was unable to fetch it.
I then changed things around and started using flask-sitemap to generate it like this:
#ext.register_generator
def index():
yield 'main.index', {}
This also works fine when I navigate directly to the file but google again does not like this.
I'm at a loss. There doesn't seem to but any way to get help from google on this and so far my interweb searches aren't turning up anything helpful.
For reference, here is the current sitemap link: www.renewedhope.us/sitemap.xml
I finally got it figured out. This seems to go against what google was advising but I submitted the sitemap as http://renewedhope.us/sitemap.xml and that finally worked.
From their documentation:
Use consistent, fully-qualified URLs. Google will crawl your URLs
exactly as listed. For instance, if your site is at
https://www.example.com/, don't specify a URL as https://example.com/
(missing www) or ./mypage.html (a relative URL).
I think that only applies to the sitemap document itself.
When submitting the sitemap to google, I tried...
http://www.renewedhope.us/sitemap.xml
https://www.renewedhope.us/sitemap.xml
https://renewedhope.us/sitemap.xml
The only format that they were able to fetch the sitemap from was:
http://renewedhope.us/sitemap.xml
Hope this information might help someone else facing the same issue :)
put this tag in your robots.txt file Sitemap: domainname.com/sitemap.xml. Hope this will be helpful.

Google Webmaster Tool Crawl Site Errors increase in not fount 404 Errors

Google detected a significant increase in the number of URLs that
return a 404 (Page Not Found) error. Investigating these errors and
fixing them where appropriate ensures that Google can successfully
crawl your site's pages.
And Let me know why google gives such Errors while crawl that website. I would like to keep in the notice that as I have rewrite the rules for the .php pages
Where I am doing wrong with the internal links between pages and content? As I have updated and correct the links after getting this message from webmaster staff team.
Kindly Check and investigate for the internal links and confirm me if I have missed something again?
Kindly Advice.
I will appreciate.
just find broken links and fix them
you can then mark these 404 pages as Fixed in Webmaster Tools

Umbraco throwing 404

I have an umbraco 4 site that I have put a google sitemap onto. This all works fine locally but on the live server I am getting an IIS 404 error (not the umbraco 404 error) - see this link.
However if I preview the node it works fine
I have googled why I would get a 404 and so far I have come up with the following causes which I have checked and can rule out as the cause:
the template is not assigned
there are multiple nodes with the same url
Would anyone know what is causing this problem or how I could fix it?
Update
I have deleted the preview node now as I recreated the node in a different place and it worked. Would still like any thoughts on why I would get a 404 though, just in case a similar thing happens in future
Unfortunately both your links are going to the IIS error page as well as all the other errors on the site so we cant tell what you sitemap should be, see this link for tips on how to set up the 404 page http://www.simonantony.net/knowledge-base/articles/how-to-setup-a-404-error-page-on-your-umbraco-site/ .
Make sure that's working across the whole site then with you Google site map is it an XML sitemap or HTML sitemap and how have you implemented it did you use a package or made it you self.

Google URL errors - soft 404s.

I've recently restructured my site and in the process have removed many pages.
I've put in .htaccess 301 redirects to reflect the changed structure where new pages directly replace old pages; have put in a custom 404 page and have included the following .htaccess command: ErrorDocument 404 /page-not-found.html.
For pages removed altogether that have no new equivalent page, I've used .htaccess to redirect to the 'page not found' custom page.
In webmaster tools, though, I'm seeing soft 404s reported - pages not found that are not returning 404 response codes.
Can anybody please advise a way forward on this?
Should I not redirect references to the deleted pages and let the 'pages not found' stack up in the webmaster tools report, or is there a way of returning a 404 code from the server for my deleted pages even though a redirect exists?
Any advice would be much appreciated.
Thanks,
Andrew
I think if the page doesn't have a new equivalent, then let it fall through not found, and return a 404 (which should show your custom page).
Google is showing a soft 404 because of the redirect (which is a 301, not a 404), as you say.
If you did redirect to the custom page, and somehow returned a 404, that's essentially the same thing as just letting them not be found.
The pages not found will stack up, but if they really aren't found anymore, then that's the correct response.
The alternative would be a 301 to a different page, that was a real "hey this moved, try this instead" page, but it would have to look like something other than "not found", to avoid google treating it as a soft 404.

magento homepage 404 status

OK...I am going crazy...
I have a Magento store in a /store/ directory. The homepage displays fine and users are able to make purchases, but to bots it's showing a 404 status code.
So /store/ and /store/index.php are both 404 header responses but I can navigate to those pages and browse the website from there. I've never seen this before.....blah
When I crawl the site with Xenu from the http://www.mywebsite.com/store/ URL it says it's 404 and the title shows, "redir" so I am assuming there is some redirect somewhere that I am missing(?)....
Any help is appreciated...I may need to explain this better so if so, I will gladly :)
Thanks in advance!
I appreciate all the help!
Somehow, changing the CMS page assigned as the homepage fixed the problem. The original homepage was calling some entity that returned a 404 error in turn giving a 404 error for the entire page.
Really not sure what happened...but like I said, changing the CMS homepage solved the problem!
Have you tried browsing your site with browser and a user agent switcher? There are examples of Magento being unable to build collections when the user agent is one of the bots which is explicitly left out of the log information.

Resources