skip to Main Content

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


  1. 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.

    Redirect 301 "https://www.captivix.com/solutions/dynamics-365-business-central-implementation" "https://www.captivix.com/services/microsoft-dynamics-business-central-implementation/"
    

    for more information, you can follow https://codexcoach.com/tools/url-redirection-checker/ article.

    Login or Signup to reply.
  2. If you are using nginx, please try nginx maps.

    Eg:

    map $request_uri $new_uri {
        /solutions/dynamics-365-business-central-implementation /services/microsoft-dynamics-business-central-implementation;
    }
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search