400 Bad Request

Started by francisco, January 13, 2019, 11:15:33 PM

Previous topic - Next topic

francisco

Hello,

I upgraded from PHP 5.6 to PHP-FPM 7.3 (with Apache 2.4.37) following the "New announcement: Wordpress - High-Performance instructions" tutorial.

The major of my sites are running fine after this upgrade, but the sites that have a URL format with ".html" at the end of the URL are showing a "400 Bad Request: Your browser sent a request that this server could not understand.":

The URL with ".html" (as it was configured in Permalinks in WordPress) is not working: https://www.delepesoasuspesos.com/ahorro-e-inversion/1850-construir-en-tiempos-de-crisis.html
Then I changed the permalink in WordPress without using ".html": https://www.delepesoasuspesos.com/ahorro-e-inversion/1850-construir-en-tiempos-de-crisis and it worked.

But what I need is to keep the permalink with ".html" in order to not affect the traffic and SEO. I tried to use a .htaccess redirect the URL to the same URL omitting the ".html" (https://stackoverflow.com/questions/16919526/how-to-link-to-pages-without-the-html-extension), but it did not work I think because the 400 bad request error appears first and then the .htaccess does not run.

This is another URL that is not working: https://www.nicaraguanpathways.com/photo-gallery/places/el-chipote/1103-notes-el-chipote.html

I tried to solve the issue by myself, but I did not got it.

I will appreciate any help you can provide me.

Thank you,

Francisco

studio4host

simply make your own template for nginx and remove html extension from that file
http://wiki.centos-webpanel.com/webservers-vhost-templates
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

h0bby

hi, i am having the same problem, whenver i try to acces .html it will gave me a bad 400 request.
Can you elobarte remove .html extension?

sizenet

Same Problem!!!

Is there a solution???

studio4host

cwp released a new update for centos 7 for this issue, update your cwp and rebuild webservers to get the issue fixed

sh /scripts/update_cwp
then rebuild websevers with default templates
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

h0bby

yup fixed the problem finally

francisco

Thank you so much, studio4host. It worked for me too.

emad