Tuesday, November 09, 2021

[How to] Redirect URL in WordPress


In this tutorial, I will walk you through redirecting a URL in WordPress without using any plugins.

You can open a Terminal or Command Prompt window and do the following:

  1. $cd to /var/www/html

  2. $ls -loa

  3. $sudo nano .htaccess

  4. Append to the end of file “Redirect 301 old-URL new-URL”

  5. Save file and exit

  6. $sudo service apache2 restart

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.