Raffi Hi, I have a website with nginx (no wordpress here) when a wrong url is targeted, I would like to redirect to a specific page. Where can this be set ?
Raffi Hi thanks for your answer, from my understanding this is to place manual redirections. This can't manage 404 error to be transferred to redirection (unless I write down all wrong url = that's impossible to do) Am I missing something ? :-/
aapanel_sniper Raffi location / { root /usr/share/nginx/html; index index.html index.htm; try_files $uri $uri/ /index.html; example: location /{ root /usr/share/nginx/html; index index.html index.htm; error_page 404 /index.html; }
aapanel_sniper Raffi Yes, Mr. You must combine the above profile into your own and put it into the site profile for it to be used correctly.
aaPanel_Kern aaP_artikel188 Hello, here you can set the redirection you need. Whether it's wordpress or something else.