404 Error When Trying To
Contents |
Points Get 404 error when trying to access index.html and contact.html When I click on the "preview workspace" icon the how to fix 404 error emerson page loads just fine, but if I click on either
Huffington Post
of the top heading buttons (index.html or contact.html links) then I get a 404. Please help. Here is my code: pushHandler(new Monolog\Handler\StreamHandler('app.txt', Monolog\Logger::WARNING)); //$log->addWarning('Foo'); $app = new \Slim\Slim(); $app->get('/', function() use($app){ $app->render('index.html'); }); $app->get('/contact', function() use($app){ $app->render('contact.html'); }); $app->run(); 8 Answers Logan R 16,288 Points Logan R Logan R 16,288 Points about 1 year ago I think he says in this video or the next that the header is no longer correct and what you are experiencing is normal. When you go to localhost/index.html, it's being directed to the index.php and looking for route /index.html, but if you notice, there is no route called that. The link in the header needs to be changed to reflect the new routes in order for them to work. Dean Friedland 2,453 Points Dean Friedland Dean Friedland 2,453 Points about 1 year ago Hmmmm. He does not say it in this video. Maybe the next. I have been stuck on this for over an hour so a heads up from the Treehouse staff would have been nice. I have literally looked at his code and and compared it with mine over 20 times and have re-watched the video a bunch of times as well. Can you dumb your explanation down a bit and explain how to make it work? Meaning how and where do I change the header and what do I change it to? Thanks Logan Logan R 16,288 Points Logan R Logan R 16,288 Points 1y ago If you want to change it, on the index.html on line 56, About which indicates the server was unable to find the requested address. Below are some suggestions on what you can do if a page you're trying to access is getting this error code. Read 404 suggestions Many 404-error pages have additional suggestions and tips on what you can do to help locate the missing page. For example, the Computer Hope 404 page gives our recommendations on where to find specific information, and gives a direct link to the search engine. Additionally, this page may give details as to why you're getting the error. For example, it may indicate if the page was recently changed or moved. Verify URL entered is correct A 404 message can also https://teamtreehouse.com/community/get-404-error-when-trying-to-access-indexhtml-and-contacthtml occur when the URL is improperly entered. Make sure the URL is properly formatted and that it's ending in the proper extension. For example, a web page may be an .htm file and not a .html file or the page file may be in lowercase and it is being typed in uppercase. Does capitalization and spaces matter in Internet addresses? Locating a lost or moved page elsewhere If the page continues to generate a 404 it is likely it has been http://www.computerhope.com/issues/ch001019.htm moved or deleted. Below are some tips on how you can locate lost or moved pages. Check for a Google Cache Google has a cache of almost every page it indexes on the Internet. If you are unable to access the information you are looking for because of a 404 error, see if you can pull up a cached version from Google (assuming it's a valid URL). To do this open a Google search and type a command similar to the below command example. cache:http://www.computerhope.com In the above example you would replace the Computer Hope URL with the URL you're trying to look up. Or if you have the Google Toolbar or a variant of the Google Toolbar, right-click on the page and click the option to view the cached version. Go back to the domain Erase everything in the URL except the domain name and search for the page you are trying to find. For example, if this page: http://www.computerhope.com/issues/ch001019.htm was bad, erase everything except: http://www.computerhope.com/ and look for a search box and search for the page or topic you are trying to find. Internet Archive If you're trying to find an older web page that has disappeared from the Internet, or you want to view the history of a web page, visit the Internet Archive. This archive has complete snapshots of over 85 billion pages since the early 90's. Additional information See the 404 definition for further information a login 404 Error when trying to login raluca123 @raluca123 2 months, 2 weeks ago we are developing our https://wordpress.org/support/topic/404-error-when-trying-to-login-1/ site,we were almost done. we wanted to change the https://social.microsoft.com/Forums/en-US/0d243c5b-0af9-49e6-a307-6d0d60ed7eb4/get-404-error-when-trying-to-access-the-whs-2011-connect-page?forum=whs2011 site address, we went to wordpress menu - dashboard /setting/general, save the change and now we cannot login anymore to wordpress. we get the 404 not found error. can anyone advice, please? Viewing 3 replies - 1 through 404 error 3 (of 3 total) Clayton James @claytonjames 2 months, 2 weeks ago Some info to help you repair the damaged site URLs: Changing The Site URL The phpMyAdmin method or the edit functions.php method are often very efficient. Please read carefully before you choose a method that 404 error when will work best for you. Some info that may help you move WordPress once you get back in: Moving WordPress raluca123 @raluca123 2 months, 1 week ago Hi Clayton, Thank you for your help. I managed to fix it, thank you so much! it is nice to have wonderful people around here. raluca Clayton James @claytonjames 2 months, 1 week ago You're welcome! Viewing 3 replies - 1 through 3 (of 3 total) You must be logged in to reply to this topic. Topic Info In: How-To and Troubleshooting 3 replies 2 participants Last reply from: Clayton James Last activity: 2 months, 1 week ago Status: not resolved Topic Tags404-errorlogin Forum Search Search for: About Blog Hosting Jobs Support Developers Get Involved Learn Showcase Plugins Themes Ideas WordCamp WordPress.TV BuddyPress bbPress WordPress.com Matt Privacy License / GPLv2 Code is Poetry. (Nederlands)Polska (Polski)România (Română)Singapore (English)Türkiye (Türkçe)Россия (Русский)ישראל (עברית)المملكة العربية السعودية (العربية)ไทย (ไทย)대한민국 (한국어)中华人民共和国 (中文)台灣 (中文)日本 (日本語)香港特別行政區 (中文) Microsoft Home Ask a question Quick access Forums home Browse forums users FAQ Search related threads Remove From My Forums Answered by: Get 404 error when trying to access the WHS 2011 Connect Page Windows Home Server > Windows Home Server 2011 Question 0 Sign in to vote When I try to install the WHS 2011 Dashboard / Connector, by entering http://