Customising Web-logics default 404 error page - redirect

I am running weblogic 9. When I enter an incorrect URL below the application root I redirect 404 request to a customized error page.
Eg. http://localhost:7001/myApp/non-existent redirects to my customised error page.
Is there a way to do this for all incorrect URLs entered, not necessarily below the application root?
Eg. http://localhost:7001/anything_non-existent should redirect to my customized error page, not the web-logic default one?
Thanks

The application's web.xml is where you define the error-page for <error-code>404</error-code>
http://localhost:7001/anything_non-existent is actually looking for a missing web application.
If you have a web server like Apache in front of Weblogic, that is the right place to trap this and redirect to 404.

Related

TYPO3 shows blank page www

I just uploaded TYPO3 (10.4.12) from my local to a server and its only reachable when not using www.
Without it the page loads fine, but when using www. it just shows a blank page. It uses the standard htaccess without any modification. Server Host says its TYPO3 settings. But I can't find this anywhere? How can I make it accessible with www.?
blank screen in an production setting means you have an error. look into the server log or switch temporarily to develop mode to identify the error.
I assume a wrong redirect in the domain configuration.

Running service application response HTTP Status 404

I deploy https://blogs.sap.com/2017/09/15/library-manager-for-sap-web-ide/ on the sap hana cloud platform and I can see, that the application is running:
When I click on the application URL it says HTTP Status 404.
What am I doing wrong?
I found the answer in an SAP UI5 course page and verified it with my application. It mentions that the application URL shown in the cockpit is only the root URL. You need to append an relative path to it. To see your relative path, you can run the application from Web IDE, and then copy the path from the slash after the host name. For example, if the Web IDE test URL is https://webidetesting-trial.dispatcher.hanatrial.ondemand.com/webapp/test/flpSandbox.html#ManageProducts-display, copy the "webapp/test/flpSandbox.html#ManageProducts-display" part and paste it after the application URL.

http status 302 error in tomcat eclipse

I am developing a Telco application (Dyanamic Web application project to send and receive sms) using Eclipse & tomcate version 7
When I try to run it on
http://localhost:8080/SMS1
It gives an error message HTTP-ERROR-CODE:302
What should I do to resolve this error
This is the link to Application and video tutorial what I am following
https://drive.google.com/file/d/0B3VmCeqDC7SDcFZaWVZhRUNmaTQ/edit?usp=sharing
HTTP code 302 is a standard "redirect" message--that is, it tells your web browser that the page was moved and where the new page can be found. I'm guessing whatever you're using as a web browser (Eclipse?) just doesn't handle that type of redirect. Try using a standard web browser like Chrome or Mozilla to see if that helps...
Also a guess, but the redirect may be trying to move you to HTTPS instead of HTTP, and your certificates may not be set up properly, or the port isn't enabled, or there may be some other problem with your HTTPS configuration. If the app is supposed to work over HTTPS, try going directly to the HTTPS version of the link to see if that's the real issue.
A third guess is the app may be trying to redirect you to a login page if you're not logged in, and maybe it can't find it. I'd need to know a lot more about the built product and I really don't want to mess with some guy's shared Eclipse project. Tell them to use a build tool!

Kentico CMS: Page not found URL

Kentico CMS
I have created a custom 404 page to redirect to when someone hits a 404/page not found error.
And then in Site Manager > Settings > Content I have added the URL location for this custom page.
Now when I try to navigate to a page that doesnt exist in my site I still get the standard 404 Server Error page. Why is it not redirecting to my custom page?
Site Structure:
Site Manager > Settings Page:
If you're using extensionless urls (looks like it), have you changed the 404 settings within IIS? You need to map the 404 error to Kentico's handler, /cmspages/handler404.aspx.
IIS 7 Instructions.
IIS 6 Instructions

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.