Knowledge Base

Get Expert Website Hosting

Choose website reliability and expertise with SiteGround!

Home / Website Help / File Manager / How to add redirects in .htaccess manually?

How to add redirects in .htaccess manually?

Last update: May 21, 2024

Open the .htaccess file for editing from Site > File Manager > click on “public_html” from the left sidebar. Open the .htaccess file and add the desired redirects. Use an online generator if you are not sure how to set redirect. The 2 most common types of redirects are 301 and 302:

  • 301 Redirects point the site to a different URL on a permanent basis.
  • 302 Redirects point the site to a different temporary URL.

Share this article