How to Redirect a Domain from cPanel using .htaccess and Rewrite Rules

How to Redirect a Domain from cPanel using .htaccess and Rewrite Rules

InMotion Hosting

9 лет назад

33,571 Просмотров

[For an updated version of this video, please go to: https://youtu.be/NO7AkiwsMtA]
Learn how to Setup a Redirect for a Domain in your cPanel:
When you 301, or 302 redirect a domain in cPanel, it adds a Rewrite rule to your .htaccess file automatically. In this video tutorial I walk you through the creation of a Redirect, and show you the resulting Rewrite rule in the .htaccess file.

For more information see our full article on How to Set Up a 301 Redirect in .htaccess:
https://www.inmotionhosting.com/support/website/setting-up-a-301-permanent-redirect-via-htaccess/

InMotion Hosting was founded in 2001 and provides personal and business web hosting for everyone! For more information about InMotion Hosting and the services we provide see here:
https://www.inmotionhosting.com

Тэги:

#cPanel #URL_Redirection #Domain_Name_(API) #301_Redirect #.htaccess_redirection #.htaccess_Rewrite_Rules
Ссылки и html тэги не поддерживаются


Комментарии:

@petermartire2777
@petermartire2777 - 06.10.2022 18:02

this is a dumb question but do I need to put the redirect in the htaccess of the new website or old one? I plan on deleting the old site. thank you

Ответить
@parfait480
@parfait480 - 18.08.2022 16:33

Thanks, mate! This video solved a problem we were having.

Ответить
@postnatalmotcoach1006
@postnatalmotcoach1006 - 29.05.2022 21:10

Is this to buy a domain , or can i just redirect to my cpanel instead of renewing domain on godaddy

Ответить
@Videosonyourwebsite
@Videosonyourwebsite - 25.05.2021 22:53

Perfect. This is just what I needed, and it's why I love hosting with Inmotion.

Ответить