Page 1 of 1

Next, write the redirect instructions in this file

Posted: Mon Jan 20, 2025 4:12 am
by robiulhasan
Create a .htaccess file


When setting up a page-level redirect, for example when you want to partners mailing leads 301 redirect from a page called aaa.html to a new page called bbb.html,

RewriteEngine on
RewriteRule ^ aaa.html

It is written as follows.

Once you have written the .htaccess file, upload it to your server.

The upload destination will depend on the scope of the redirect.
When you upload .htaccess, the settings will be applied to the hierarchy below the upload destination .

For example, if you upload it to the home page hierarchy, the settings will be applied to the entire website.