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:
$cd to /var/www/html
$ls -loa
$sudo nano .htaccess
Append to the end of file “Redirect 301 old-URL new-URL”
Save the file and exit
$sudo service apache2 restart
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.