I want to set up a 301 redirect on my WordPress website to redirect the page at https://www.captivix.com/solutions/dynamics-365-business-central-implementation to https://www.captivix.com/services/microsoft-dynamics-business-central-implementation/. However, I prefer not to use any plugins, as they can slow down the website. Could someone provide a custom code solution for this?
Thanks in advance.
I tried doing it using a plugin but then I made up my mind to not use any plugin.
2
Answers
You can set redirection in the
.htaccess
file without using any plugin.Let’s do it with a simple redirect where you want to point one page to another page. Put the following code after
RewriteEngine on
of the.htaccess
file located at the root of the website.for more information, you can follow https://codexcoach.com/tools/url-redirection-checker/ article.
If you are using nginx, please try nginx maps.
Eg: