http-status-code-404

Zurb Foundation 5, modernizr not found

徘徊边缘 提交于 2019-12-05 03:28:35
I get this when using Foundation 5.0.2.0 in production mode. On Rails, Unicorn, NginX & Ubuntu. "NetworkError: 404 Not Found - http://mydomain.com/javascripts/vendor/modernizr.js" Update 3/13/14 I don't have this problem on heroku with foundation-rails-5.1.1.0 . Adding javascript_include_tag "vendor/modernizr" in the head works. I could remove the modernizr I copied to the vendor directory and remove the extra line in app.js I had the same problem on heroku, the app would crash because it couldn't find modernizr.js. Here's how I fixed it: Copy modernizr.js from foundation (wherever you

catch api 404 response with Angular2 http

爷,独闯天下 提交于 2019-12-05 03:26:12
I have api which returns 400 or 404 errors if failed. When I run the http.get method, it does not catch the error on subscribe and throws error. Http.get(`api/path/here`).map(res => res.json()).subscribe( data => console.log(data), error => console.log(error) ); Following is the error I get .subscribe(res=>{ this.data=res; console.log('bye'); }, (err)=>console.log(err), ()=>console.log("Done") ); Try out this way. You could also use the catch operator http.get(`api/path/here`) .map(res => res.json()) .catch( err => { // handle errors }) .subscribe( data => console.log(data) ); 来源: https:/

Openshift app redirecting to https://domain_name/app

☆樱花仙子☆ 提交于 2019-12-05 00:54:57
I have hosted an app on Redhat Open shift. I didn't change anything but it started redirecting to https://www.plovist.com/app and throwing 404 error. Can anyone help me in solving this? Make sure that you have correctly added your alias to your application (www.plovist.com) I logged into Godaddy(my DNS) account and found out that in Cnames(Alias) www wasn't pointing to mydjango-plovist.rhcloud.com (URL given by Openshift). Also I pinged mydjango-plovist.rhcloud.com and it gave a different IP Address than one I had written in A Record. So I pointed in Cname to mydjango-plovist.rhcloud.com and

hapi.js - 404 route VS static files route

感情迁移 提交于 2019-12-05 00:53:20
I'm trying to migrate my Express app to hapi.js, and I having trouble with my routes. I just want 2 GET : my index '/', and everything that is not '/' to redirect to '/'. Using Express I had this: // static files app.use(express.static(__dirname + '/public')); // index route app.get('/', function (req, res) { // whatever } // everything that is not / app.get('*', function(req, res) { res.redirect('/'); }); I have issues with hapi.js to get the same behaviour. My "static road" looks like this: server.route({ method: 'GET', path: '/{path*}', handler: { directory: { path: 'public', listing: false

How to redirect an error 404 to home page with .htaccess?

荒凉一梦 提交于 2019-12-04 23:22:32
问题 Hello how do I redirect an error 404 to a home page with .htaccess? Example: site.com if write site.com/some_site_notforund instead of 404 redirects us to the main page Example 2: sadistic.pl if write sadistic.pl/some_site_notfound instead of 404 redirects us to current page 回答1: Try: FallbackResource /index.html or whatever the homepage is try: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^ /index.html [L] 回答2: You can do this like this

Pylons - Changing the regular 404 Not Found page to a custom one

≯℡__Kan透↙ 提交于 2019-12-04 19:47:21
How do I change the regular 404 page generated by Pylons to my own custom-made 404 page? Thanks in advance, John From what I know, you have to edit your ErrorController in appname/controllers/error.py and change the "document" method. def document(self): return render('/my_errors/blah.mako') Read that for more details: http://wiki.pylonshq.com/display/pylonsdocs/Error+Documents#changing-the-template Just create your view and use add_notfound_view configuration method to configure it. See: http://docs.pylonsproject.org/docs/pyramid/en/latest/api/config.html?highlight=document%20error#pyramid

In Kohana, can you trigger a 404 error?

こ雲淡風輕ζ 提交于 2019-12-04 18:39:07
问题 I have a controller called articles , which creates the articles model which gets the relevant data from the database. I want to, if the method I call returns false , to trigger a 404 error. This is what I have so far. $articleName = $this->uri->segment('articles'); $article = new Articles_Model(); $data = $article->getArticleUsingSlug($articleName); if (!$data) { Kohana::show_404; // This doesn't work. } I just added my own custom hook which redirects the user to an actual 404 (/articles

AngularJS SEO Page 404 Header Status Code

戏子无情 提交于 2019-12-04 17:15:53
We are working in a project which uses Symfony2 + AngularJS. Each one in a different domain (api.domain for Symfony2 and www.domain for the Angular project). Now we are focusing on the SEO part. We use Prerender.io to create static snapshots to serve a good HTML Raw page to crawlers. But the problem is when serving the "404 Page" on Angular: $urlRouterProvider .otherwise('/404'); The thing is, what we do is redirecting a nonexistent page to our "404 Page" with a 200 Header Status Code, which is very bad for SEO purposes... Since AngularJS is not capable of generating, we have already tried 2

Coldfusion 10, IIS 7.5 - Getting a 404 even though file exists

北城以北 提交于 2019-12-04 16:40:56
问题 I'm getting a 404 even though the page exists on disk. I've ran the Web Server Configuration Tool and rebooted several times. Handler mapping for .cfm files (configuration tool seems to have worked): C:\ColdFusion10\config\wsconfig\1\isapi_redirect.dll Virtual Paths: root/index.cfm <- works root/dan.cfm <- doesn't work Server: Windows 2008 R2, IIS 7.5 and Coldfusion 10 Rest of my configuration: Update 1 NTFS Security Information on /wsconfig/1 folder: Answer - TLDR Map a virtual directory

Visual Studio 2012 Web Deploy to Windows Server 2008 R2 with IIS 7 and /msdeploy.axd 404 error

我怕爱的太早我们不能终老 提交于 2019-12-04 15:38:51
问题 In Visual Studio 2012 RC when I try to validate a Web Deploy connection I get this error message: ERROR_DESTINATION_NOT_REACHABLE The required Web Management Service is started on the server and Web Deploy 3.0 RC is installed. Then using Remote Desktop Connection I log on the server and go check IIS logs located at C:\inetpub\logs\LogFiles\W3SVC1 . There I can see my attempts to validate the connection because they contain my IP address: 2012-07-13 20:58:49 185.201.117.17 HEAD /msdeploy.axd