Hi, I was trying to redirect the site with Rankmath. Sadly It wasn’t possible. I am using WordPress 5.8 on Ubuntu 20.04. What is the correct way to redirect?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi @neverdevelopment,
Depending on your WebSerivce you have two possible ways. First, you need to find if you are using Apache or Nginx. To do that, SSH to your Droplet and type in
Depending on what you see, you’ll have to perform different actions.
If you are using Apache2, you’ll
need to go to your parent directory(where your website is loading from) and in your .htaccess
file add :If you are using Nginx. Go to
/etc/nginx/sites-available
and open the .conf file of your website. In there you need to add the following:HTTP Solution From the documentation, “the right way is to define a separate server for example.org”:
HTTPS Solution