Create a redirect link to a page

To create a redirect link to a page, edit the .htaccess file located in your public directory, and add the line “Redirect /<your-link-text> <your-destination>“.

An example of this line might be:

Redirect /example https://wordpress.org/documentation/article/htaccess/

The example above will redirect any visitor who tries to visit the URL https://forthdev.com/example to the page https://wordpress.org/documentation/article/htaccess/.

If you use cPanel, you will find the .htaccess file in the public_html folder of the file manager. You will need to enable the show hidden files option in the settings to see the file.

Leave a Comment