http-status-code-404

Eclipse throwing error - “file name references to ”main.html“ that does not exist in web content” 404 error for web.xml

∥☆過路亽.° 提交于 2019-12-13 04:28:50
问题 I am facing an issue in while running simple web project in Eclipse. I will first demonstrate the steps of creating my project :- 1) New Spring Template Project. 2) Select Spring MVC Project. 3) Click Finish. 4) Now I create a new file name "login.html" in "webapps" folder under "src" 5) Now I tried to add welcome-file tag in the web.xml. 6) When I do that I get the above Warning inside web.xml from Eclipse. 7) If I run the application I get 404 error This is my web.xml <?xml version="1.0"

Magento - Currency - 404 Not Found - The requested URL /directory/currency/switch/currency/USD/ was not found on this server

Deadly 提交于 2019-12-13 04:14:59
问题 Recently I bought theme and now I have troubles with currencies. When I switch the currency I got message like that: The requested URL /directory/currency/switch/currency/USD/uenc/aHR0cDovL3ZvdmFuLm5pY2t3bGtlci5jb20v/ was not found on this server. But if I go back I'll see that currency changed. How to prevent this "error" ? 回答1: I found the solution. I was needed to remove index.php from url in magento. I did that: 1) System >> Configuration >> Web >> Search Engines Optimization >> Use Web

Can Apache serve a default file instead of a 404?

心已入冬 提交于 2019-12-13 03:45:49
问题 We have Apache serving a set of files from a particular directory. If a file requested in that directory does not exist, can I make Apache return a default file - instead of a 404? If so, how? 回答1: This can be achieved making use of .htaccess. Check this WebReference article on the topic. Basically you only need a file name .htaccess in your directory which contains ErrorDocument 404 /YourCustomErrorPage.html Of course any other file can be served too. 回答2: What kind of file? Is it a static

Woocommerce REST API - Nginx - Error 404 Not Found

拥有回忆 提交于 2019-12-13 03:19:35
问题 I'm trying to use the Woocommerce (v 3.5.4) Rest Api on my VPS ( debian 9, Nginx ). Everything works well in my local machine ( windows 10, XAMPP ). wpbop/ is the folder (var/www/wpbop/) where the wordpress files are stored. The next basic URL in a browser should send the endpoints of the API (no need of athentication for this first step) : http:// my-public-ip /wpbop/wp-json/wc/v3 Or a curl in command line curl http://127.0.0.1/wpbop/wp-json/wc/v3 in both cases, i get error 404 Not Found. I

404 Header Response, but page displays ok?

拈花ヽ惹草 提交于 2019-12-13 02:38:46
问题 I am not the developer for the PHP site in question (and I don't PHP at all!) but I was asked to investigate this issue. Basically, a large number of pages on one of our websites appears to return a 404 header response when using something like Live HTTP Headers (Firefox Addon) and some of our reporting tools, however, when you paste the url into the browser, the page renders fine. I was wondering what things might cause this behaviour? Here is an example URL which returns a 404 header

webMethods pub.client.http throws error on 401

拜拜、爱过 提交于 2019-12-13 01:35:01
问题 I am using webMethods from the SAG and it seems if the service pub.client.http throws an exception on status code 401 "Unauthorized". This leads me to the problem that I cannot handle the status code because nothing is written to the pipeline. getLastError does contain the string "Unauthorized" but not the status code. Except that I do not want to start parsing exception messages... Any ideas? 回答1: The output parameter header from the pub.client.http call should contain the information you’re

Struts 2 returns 404 which is not triggered by tomcat error-page

╄→尐↘猪︶ㄣ 提交于 2019-12-13 01:27:12
问题 Consider struts 2 webapp on Tomcat 7.0.54. The web.xml is defined as: <error-page> <location>/WEB-INF/content/global-error-page.jsp</location> </error-page> This force all Tomcat errors (including 404) be redirected to global-error-page.jsp ; So if I try http://foo.com/bad.jsp or http://foo.com/bad.ext Tomcat redirects me to global-error-page.jsp However trying http://foo.com/bad.action will still return the 404 error and tomcat can not handle it, is it a way to fix it ?! 回答1: You can use a

Alfresco webscript can't find Company Home folder

久未见 提交于 2019-12-13 00:23:24
问题 I'm trying to create a custom webscript on Alfresco Community. I'm following this tutorial: http://docs.alfresco.com/community/concepts/ws-folderListing-intro.html. Everything works out fine in the beginning. When I navigate to localhost:8080/alfresco/service/ and click on 'Refresh webscripts', my new webscript is registered. But now when I navigate to localhost:8080/alfresco/service/dir/Company%20Home I get the following message: The Web Script /alfresco/service/dir/Company Home has

AngularJS html5mode and hard 404

♀尐吖头ヾ 提交于 2019-12-12 15:12:02
问题 I have a AngularJS app working with html5mode set to true . Currently, the app shows a soft 404 page, with the .otherwise setting in the router. Is there a way I could serve actual 404 HTTP response, for the sake of SEO while using html5mode? 回答1: If I understand correctly what you want, you have to do the following: hard redirect the browser (bypassing the angular routing) on the otherwise path, with something like this: $routeProvider .otherwise({ controller: function () { window.location

Apache custom 404 page that returns 404 error

懵懂的女人 提交于 2019-12-12 14:22:51
问题 I have a custom 404 error page on my apache (404.php) and it works normally, but if someone or any search engine requests the /404.php page, the server returns 200 (OK) , because the page actually exists. I have already put the Disallow: /404.php on my robots.txt file to prevent Google from indexing that page, but I'd like to return 404, including to this page request. Is there a way to also return 404 when someone reaches the 404.php directly? 回答1: I just whipped this up really quickly: <?