linux - non www to www with extra redirect -
I am currently using the following code in my HTX file so that all the www server. Everything works fine with all sites, but Some sites are still not open to the public. In those sites, I am using a redirect in a folder that has a "under construction page blank blah" the following code Point when I get a loop and stop error in the browser when using another redirect, then how do I simultaneously with both redirects Can i work Put your rules in the right order: Rewrite% {HTTP_HOST}! ^ Www. RewriteRule ^ (. *) $ Http: //www.% {HTTP_HOST} / $ 1 [R = 301, L]
rewritecond% {HTTP_HOST} ^ www.mysite.com $ [or] rewrite% {HTTP_HOST} ^ mysite.com $ rewriterule ^ mysite \ / $ "http \: \ / \ / mysite \ .com \ /beta\/beta\.html "[R = 301, L]
Rewrite on rewriting Code% {HTTP_HOST} ^ (www \.)? Domain \ .com $ [NC] RewriteRule ^ mysite /? $ Http://domain.com/beta/beta.html [R = 301, L, NC] RewriteCand% {HTTP_HOST}! ^ Www. RewriteRule! ^ Beta / Beta \ .html $ http: //www.% {HTTP_HOST}% {REQUEST_URI} [R = 301, L, NC, NE]
Comments
Post a Comment