I've a view with an URL: "/a" so that if I visit www.example.com/a the view is showed.
The problem is that the view shows even on all "/a/something" or "/a/something/apple" addresses so that no 404 error shows up.
Is the a way to limit view to its URL so that URL like: "/a/something" results in 404 error?
Thank you all!
Related
I'm a beginner of AMP from Japan.
Now I'm in trouble dealing with a error that is output when I introduce AMP into my WordPress webpage.
I cloud activate the AMP plugin and display an AMP of the post page without problem.
But the following error was output on my browser console when I added #development=1 to the end of URL of the post AMP to confirm whether the post AMP was configured as a valid AMP on Google.
Failed to load resource: the server responded with a status of 404 ()
https://cdn.ampproject.org/v0/validator_minified.js.sourcemap
Then I accessed to the above URL described in the error message, the following error page was displayed.
Google
404. That’s an error.
The requested URL /v0/validator_minified.js.sourcemap was not found on this server. That’s all we know.
I guess the output post AMP may not be recognized by Google as a structure of AMP if this error page was displayed.
But I have no idea to resolve the 404 error and can't progress any more.
In other words, I'd like to know some solution and hints to resolve the 404 error in order that Google recognizes my post AMP.
If you have some solution or hints, I'd be very helpful if you provide them for me.
Thanks in advance.
clear your cache in the server and delete your log. Blocking an malicious IP trafics and your see the IP in 30 per connection then you want blocked the IP.
Using proxy or like mitigation
Please check the link:
http://kotinos.com.gr/index.php/en/2016-09-20-12-44-31/rings/ring-012498-detail
and if someone can tell me why on earth i get debug errors for not having type or image as meta, i will be grateful.
The issue is that i don't get Title, description or image at all and as you can see from page source i have it all (they are produced through php and added as meta values)
Debug errors from https://developers.facebook.com/tools/debug/sharing/?q=http%3A%2F%2Fkotinos.com.gr%2Findex.php%2Fen%2F2016-09-20-12-44-31%2Frings%2Fring-012498-detail is based on the URL before 303 HTTP Redirect, and the page source you view is from the URL after 303 HTTP Redirect.
I am currently building a website and I want to add the HTTP 404 not found Error page. I designed the bad request page and its link is this, for example:
www.mysite.com/badr.cshtml
The problem is, I want to show the contents of this page on every invalid request without redirecting to that link. For example, if I type www.mysite.com/noexistingpage, the contents of badr.cshtml should load without redirecting to it.
And for your information, I am using Webmatrix2.
you do this via the web.config and the custom errors section.
http://www.localwisdom.com/blog/2010/08/how-to-setup-custom-404s-for-iis-and-asp-net-through-web-config/
I have permalinks set to "Post name".
If I put in my address bar: http://www.example.com/section1/whitepapers/, WordPress loads it correctly, but if I send a POST or GET request to the same URL, it throws a 404 error inside WordPress.
This is my htaccess file: https://gist.github.com/3062205
Could someone shed a light on what might be happening here?
NOTE: The 404 error is thrown by WordPress, it's not a Server 404 message.
What parameters do you submit with the GET and POST requests. Wordpress will strip out any parameters with 'name' in it. I my case i renamed a parameter 'firstname' to 'fn' and it worked. See wordpress-404page-not-found-on-form-posted-data
could your url be redirecting from WWW to nonWWW or vice-versa?
Can you see the header response it returns
I read the following advise by dotnetchris in the comments of a blog post by Jonathan Creamer:
In a regular application (aka not a RESTful web service), the proper way to handle a 500 error is to issue a 302 temporary redirect, then redirect to the 500 error page that returns a proper 500 status code.
I would like to know if this advise is correct. My experience as a developer is with ASP.NET MVC, and the error handling approaches I have seen relating to that framework are ones where no redirect is issued for a 500 error.
Generally i cant agree with this approach. It's looks like:
-> Access page that return error -> 302 to other page that return 500 error.
It's mean for search bots that this page redirect to other page that return error due to some result. Of course it's not good in this way. In my app i always show errors on the page where they appear. I just change the template of page in this case.