homepage Welcome to WebmasterWorld Guest from 54.147.196.159
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
htaccess redirect question
htaccess redirect question entire site
Garya

5+ Year Member



 
Msg#: 4623666 posted 1:11 am on Nov 16, 2013 (gmt 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?

 

lucy24

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



 
Msg#: 4623666 posted 2:06 am on Nov 16, 2013 (gmt 0)

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?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved