Unable to create SSL Socket Factory for client

I am using Java 1.5.0_16 (JBoss-4.2.3.GA application). My application implements a WS client which needs to integrate with an external Web Service. This communication needs to be handled through...

Redirecting old .html page to new without html extension page?

I've just changed permalinks in my wordpress site. And my old links were like that, http://www.sitename.com/category/postname.html Now new links...

How do I force redirect all 404's (or every page, whether invalid or not) to the homepage?

Currently every invalid page is 500 (Internal Server Error) because I probably messed up with my server block configuration. I decided to shut down my website a while ago and created a simple...

pass form errors in TemplateView in Django?

This is how my views.py looks: class HomePageView(TemplateView): template_name="home.html" def dispatch(self,request,*args,**kwargs): if not request.user.is_authenticated(): ...

Ubuntu Nginx/Laravel 500 Internal Server Error

When I try to access say: Http://localhost/page I get a 500 Internal Server Error from nginx. 500 Internal Server Error nginx/1.1.19 is all it states on the page. In the log file I get this error:...

nginx redirects POST requests to GET request

I have Rails 4.1 application with runs on puma web server. I use nginx as a proxy server. Several days ago everything worked very well. I updated my application, and suddenly some POST requests...

Use regex to replace underscore with dash in URLs of Wordpress blog

I have recently replaced all URLs of my Wordpress blog containing an underscore with a dash. Example old URL: /this_is_a_test Example new URL: /this-is-a-test However, Google still indexes my...

IIS ARR rules not working as expected in adding trailing slashes to my applications

I have a pool of applications that I want to run under a ARR server that should serve as a router for all my applications. I have defined a set of rules that should be applied in waterfall, but...

Amazon S3 Redirect Rule - Preserve Query Params

I noticed https://stackoverflow.com/questions/23993675/amazon-s3-redirect-rule-get-data-is-missing but after following the accepted answer my query params still are not being preserved. I have a...

Permalinks in Wordpress not working with Laravel + Nginx

I have a site developed with Laravel on my main route say www.example.com/. I have configured it properly with Nginx and php-fpm. My config is below. Then I added a blog in route /blog...

Laravel project in subfolder of public_html gives trouble with .htaccess redirect

I've set up my VPS server and am trying to set up a Laravel project. I have a /public_html/ folder with an index.html that's shown when visiting the website URL. I have a laravel project in:...

nginx & laravel: rewrite or internal redirection cycle while internally redirecting to "/index.php"

I am trying to upload my laravel app to my Digital Ocean droplet. I followed this tutorial and now I am getting 500 server error. here is my nginx error.log: 2016/11/22 02:21:30 [error] 7733#7733:...

Send both 404 status and redirect to 404 component in react-router

I have a react-router 3.0.0 setup with a NotFound component I'm showing as a fallback: <Route component={NotFound} path="*"/> However this returns a redirect and the google crawler is...

WP Redirect From /%postname%.html To /%category%/%postname%/

I changed my WP permalinks from " /%postname%.html " , not the more common " /%postname%/ " to currently " /%category%/%postname%/ ". WP handles this just fine. But i am having problems...

fatal: unable to update url base from redirection

$ git remote set-url origin https://[email protected]/home/demodev/public_html/waqtpar.git` $ git push -u origin master` fatal: unable to update url base from redirection: asked for:...

Return back redirects me to home page in laravel 5.4

So what I'm trying to do is to redirect the user to his previous location whenever a 404 error appears. That means, I want to simply not allow him to reach unexisting http addresses and to return...

Setting up Apache Superset with Nginx as Reverse Proxy

I'm having trouble setting up apache superset with Nginx as a reverse proxy (This is probably an nginx misconfig). Server block of config (if I'm missing something, let me know and I'll add...

ASP.NET Core redirecting to the same page after submitting a form with HttpPost method

I am developing a web application using ASP.NET Core 2.0. First of all i have a main view called NewOrder.cshtml: @using Microsoft.AspNetCore.Mvc.Rendering @using...

How to avoid 404 error with Angular 7 Single Page Application on Wildfly

I have a front-end project as single page application (SPA) built with Angular 7, which consumes a Java REST API hosted on Wildfly (there are other projects on the same server). We recently moved...

WCF client. Client Certificate. First call success, Second call fails

I'm trying to connect to a soap web service over https, with soap11 and client certificate credentials using c# .NET 4.5. I use the tool of vs to add service reference and it create a soap client...

How to fix 404 when reloading page in reactjs

I'm having trouble with reactjs in production, in my development machine i can easily refresh/reload without redirecting to 404 (not found page) but during production every time i reload or...

how to remove custom post type from wordpress url?

I have a wordpress website which is using the custom template with custom post types like landing and services. Each post type have a specific slug in the url like this =>...

Oauth2Login for only specific urls

I'm trying to have an oauth2 configuration setup for login through Spring Security. But only for specific urls. My security config looks as follows. @Override public void configure(HttpSecurity...

GatsbyJS: Display 404 page if route doesn't exist

How to correctly set up 404 page, so that if user hits any route that does not exist, it redirects to this 404 page? Currently I have this code: import React from "react"; import Layout from...

React Router v5 - Global No match in Nested Routes

I have two route 'stacks' in my React app: Public (Login, Register, 404, etc - /login, /register) Private (Dashboard - /app/*) When user is logged, Dashboard routes stack is used where is next...

How can I exclude some routes from UseStatusCodePagesWithReExecute?

I have a full-stack app in ASP.NET Core 5. The front-end is React and the back-end is OData. I need to use app.UseStatusCodePagesWithReExecute("/"); in my Configure() method to redirect any...

Laravel Nova + Laravel Jetstream Login Error

If I login to Nova, sign out and then sign into our client facing side (/login) I get a modal that pops up with a 404 error. This modal error happens on /login and does not redirect to the...

How to use rewrite rule for Node exporter under Nginx Reverse Proxy?

I have a usecase where node exporter is running under reverse proxy. Here is the snippet of my current configuration: location /node_exporter { proxy_pass ...

Better way to handle 404 page not found in a React app

I'm working on a React app and i'm trying to figure out a better way to redirect to 404 page not found when user hits a wrong path. Basically my application has a navbar with three main routes...

Redirect to custom login page using [Authorize] attribute in .NET Core 6

I,am using .net 6 for application development. I,am using Identity Manager from .net core. I have made a custom bootstrap login page. Also as per my application structure I don't need a...