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,575 Просмотров

Ссылки и html тэги не поддерживаются


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

@JasonTRogers
@JasonTRogers - 11.09.2020 18:28

Thank you that was super helpful

Ответить
@poonasor
@poonasor - 07.11.2019 04:53

what about masking the redirect?

Ответить
@soothinghorizonmeditation2318
@soothinghorizonmeditation2318 - 27.10.2019 05:08

hello sir, thanks for the video. But l have a problem here, l watched one of your videos about changing url and when l was doing it, l forgot to point the servers before changing the url, so currently my dashboard is lost [ l can't access it ] and my website is also malfunctioning because l changed the url without pointing servers. please what do l do? am confused please help me. Thanks

Ответить
@texxlady
@texxlady - 21.10.2019 07:29

I set it up and it was instant but now I've changed my mind and can't seem to turn it off - I even deleted the domain from my cpanel and it's still redirecting.

Ответить
@iordachecatalin7555
@iordachecatalin7555 - 14.02.2019 19:19

Thanks

Ответить
@ctlnb
@ctlnb - 10.12.2018 15:53

why you didn't mention anything about 302 and 301 redirects?

Ответить
@yoyo12314
@yoyo12314 - 27.12.2017 12:54

How does it work if yo want to work the redesign of your website in a subdomain and then make that subdomain to appear as your mean domain?

Ответить
@j.hunter5007
@j.hunter5007 - 14.12.2016 03:34

Using this method does not work. Just did it as he demonstrated. Added my domain redirects on my Inmotion page and it now looks just like his. Opened another tab in Google and typed in the domain to be redirected (just as he did). Does not work.

Ответить
@D2AZCTeam
@D2AZCTeam - 19.06.2016 21:57

Hello sir, how could i host subdomain..?? i already have it domain name and hosted from bigrock. But i just only buy single domain host . should i use the same name server or what exactly i cant say here.. This is my point.. How to host subdomain..?? :D Sory my england oh english :D

Ответить
@schizoautist9616
@schizoautist9616 - 22.04.2016 21:08

thanks boss

Ответить
@KerrieRedgate
@KerrieRedgate - 29.01.2016 14:40

Great, nice and simple! Thanks for the thorough htaccess file explanation as well.

Ответить
@nikizaykov
@nikizaykov - 13.12.2015 19:59

Great tutorial, but I have question. If you already have webpage, but it's free hosting and you bought already a domain name, how you gonna make it when the people type your new domain name to go on your free hosting webpage? And how can I do it to use the new domain name without seeing the old one in the tab above? I know that I need to give the nameservers of the domain provider, but than what do I need to change in cPanel to make it work the new and better named domain name? Thanks

Ответить
@inmotionhosting
@inmotionhosting - 24.08.2015 14:58

Hello +SzE, the .htaccess file is a file for additional configuration of the directories it governs. The cPanel writes the redirect rule to the .htaccess file.

Ответить