Welcome to WebmasterWorld Guest from 54.163.25.166

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

htaccess redirect question

htaccess redirect question entire site

     
1:11 am on Nov 16, 2013 (gmt 0)

Full Member

10+ Year Member

joined:Apr 11, 2005
posts: 225
votes: 0


How do write a 301 redirect
to redirect entine site to a new domain.

I did a 301 redirect and it works for http
but the https won't redirect.

What is the code for both http and https?
2:06 am on Nov 16, 2013 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month

joined:Apr 9, 2011
posts:12702
votes: 244


What does your existing redirect look like? mod_alias or mod_rewrite?

Other questions: Are some pages reachable by both http and https, or are they mutually exclusive? You said htaccess, which I assume means shared hosting. Does the new domain live in the same userspace, or under the same primary domain, as the old one? That is: will it pass through the same htaccess?

Does the redirect for https pages simply not take place, or does something else happen?