Page 1 of 2
Wordpress page with custom .html url doesn't work
Posted: Tue Sep 28, 2021 3:05 pm
by Zakopet
My Wordpres site doesn't work.
I have custom post links like "/%category%/%post_id%-%postname%.html"
And posts don't work, because extension ".html"
Than i removed "htm|html"
from ngnix conf "domain.com.nginx.ssl.conf"
Replaced "location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|tif|tiff|css|js|htm|html|ttf|otf|webp"
To "location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|tif|tiff|css|js|ttf|otf|webp"
And site works well!
Re: Wordpress page with custom url doesn't work
Posted: Tue Sep 28, 2021 3:21 pm
by Zakopet
But when LetsEncrypt renewed certificate Wordpress site doesn't work again.
What is path to template configs?
I can't find template config here "/usr/local/vesta/data/templates".
There are no files:
PHP-FPM-56
PHP-FPM-74
PHP-FPM-80
Re: Wordpress page with custom .html url doesn't work
Posted: Tue Sep 28, 2021 3:23 pm
by myVesta
is it nginx-only variant or default setup?
Re: Wordpress page with custom .html url doesn't work
Posted: Tue Sep 28, 2021 6:18 pm
by Zakopet
dpeca wrote: ↑Tue Sep 28, 2021 3:23 pm
is it nginx-only variant or default setup?
It is default setup.
I used this command to install Vesta:
bash vst-install-debian.sh
Re: Wordpress page with custom url doesn't work
Posted: Tue Sep 28, 2021 6:35 pm
by myVesta
Zakopet wrote: ↑Tue Sep 28, 2021 3:21 pm
But when LetsEncrypt renewed certificate Wordpress site doesn't work again.
What is path to template configs?
I can't find template config here "/usr/local/vesta/data/templates".
nginx templates are in folder
/usr/local/vesta/data/templates/web/nginx/
Re: Wordpress page with custom url doesn't work
Posted: Tue Sep 28, 2021 7:54 pm
by Zakopet
dpeca wrote: ↑Tue Sep 28, 2021 6:35 pm
nginx templates are in folder
/usr/local/vesta/data/templates/web/nginx/
I can't find string
"...jpeg|jpg|png|gif|bmp|ico|svg|tif|tiff|css|js|htm|html|ttf|otf|webp..."
in "default.tpl" and "default.stpl"
Wich config should I edit to remove string "htm|html"?
Re: Wordpress page with custom .html url doesn't work
Posted: Tue Sep 28, 2021 8:49 pm
by myVesta
I'm pretty sure it's already removed in myVesta code -
https://github.com/myvesta/vesta/commit ... d86928c164
Just update myVesta.
Re: Wordpress page with custom .html url doesn't work
Posted: Tue Sep 28, 2021 9:09 pm
by Zakopet
I have latest version myVesta (0.9.8) (26-49) and myVesta auto update was enabled.
I installed myVesta 06.09.2021
Re: Wordpress page with custom .html url doesn't work
Posted: Tue Sep 28, 2021 9:15 pm
by Zakopet
I didn't create web domains in myVesta, I restored account from backup VestaCP (not myVesta). Maybe it is because of that
Re: Wordpress page with custom .html url doesn't work
Posted: Tue Sep 28, 2021 10:31 pm
by myVesta
Yes, it gets extension list from backup file...