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.
Next, write the redirect instructions in this file
-
robiulhasan
- Posts: 127
- Joined: Mon Dec 23, 2024 3:41 am