WordPress and robots.txt - robots.txt

I have a WordPress blog and apparently WordPress creates a virtual robots.txt file. The strange thing is that in Webmaster Tools I ran a test crawl and it came back with no errors, the Googlebot was allowed to crawl the site. but when I do a Google search for my blog it says that there is no description available because of the robots.txt file. How can it be both?

Related

Redirects on Google Cloud Run

I've got a clients site that uses Google Cloud Run and I need to implement some redirects as they have both www. and a non www. version of the site simultaneously.
https://www.example.com
https://example.com
I would like to setup a redirect so that it goes from www. to the non www. version. I know I can't do this at DNS level for this type of redirect so am looking at doing it at a server level. I've checked for documentation on this on Google Cloud run and can't seem to see anything relevant. I've never worked with a client site that uses cloud run before, but have a good idea of how I'd go about doing this on a website that uses Apache or Nginx.
Does anyone know if there is a specific file where I should be implementing redirects within the Cloud Run setup?
Thanks,
Adam
You should do this in the code. For example if you were using Python with Flask, you can implement it in your #app.before_request

Submitting Both www. and non-www Versions of Site to Google Search Console

I never use or see the www. version of my site, as far as I know, unless it happens "under the hood". When I added the https://example.net version, I got an email suggesting I add all versions of my site. So should I add the www. version? What is the benefit of doing this? And if it is the right thing to do, do I add a sitemap with the url of the www. or the non-www. version please?
Should I also add http versions?

Can't add www page to google adsense

I have website hosted on zeit. I bought domain, but it can only be accessible via https://www.example.com but when i try to enter my websites name to google adsense it keeps downgrading to https://example.com, so, because of that verification always fails. How to solve this? How to change dns settings to redirect https.. to https://www..? Or is it possible to prevent downgrade to https? I'm basically failing first step of adsense registration.

Can a website have 2 google webmaster tools on it?

I work in a corporate environment where I manage several websites. Some websites that are in our system have been developed my an outside agency. We are in the process of adding google webmaster tools to the sites. However the outside agencies have already place google webmaster tools on the sites they've created.
Would there be an issue with a site having 2 google webmaster tools on it?
No you can't because webmaster tools is connected to Google analytics code, and you can't have two GA code in your website.

ASP.Net MVC + Wordpress

I have ASP.Net MVC project. Plus wordpress blog under a subfolder "/Blog".
Now, when I access the URL www.domainname.com/Blog, I get the following error:
"The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map."
I guess the problem is because the Blog url is accessing a .php files (Wordpress) which MVC Routing handler does not understand.
Can you please help? What can be done?
Does your hosting support PHP? It does not look like a routing exception, more like a server config error.
I found the solution.
In my server admin (Plesk), I had an option to run php as CGI app, FastCGI or ISAPI Extension.
Earlier it was CGI app. So it did not work.
I set it to ISAPI Extension and it worked.
Thanks.