Categories: Webdesign

Redirect homepage with .htaccess

To temporarily redirect the whole website under a folder to a new domain.

Using .htaccess, it can be done with just the following code.

Redirect 302 / https://www.namran.com/

If you want a permanent redirect, change 302 to 301.
It may have some SEO impact, but I am not sure how significant it is.



Namran Hussin: a soft spoken guy... with exceptional interest in computers and technology. I love to learn new thing and also love to break thing for the sake of learning.. but I do abide to the self-imposed limitation or certain thing such as social thing in life, thing can be done and thing that must be avoided at whatever cost such as drug,illegal tracking, smoke,illicit activity..etc.muahahaha let's share what we had in this short term of the life.! make it worth of the living.~
Related Post
Leave a Comment