July 18, 201115 yr I need a very simple yes/no. This is the www: http://www.jetbookingdirect.com/ This is the non-www: http://jetbookingdirect.com/ Please make sure your browser is not auto inserting the www, you'll know if it is by checking the address. I need to verify the non-www is definitely not working. Probably best to try in IE as IE doesn't auto insert www's. Thanks.
July 18, 201115 yr Author Did you 100% check the non-www, or was the www being added? It's not working my end. I also can't ping it.
July 18, 201115 yr Author I don't get it, why not my end then? Could it be an issue with the server we have at work which we access the net via?
July 18, 201115 yr Is it only this site you have the problem with or do any others fail without the www. ?
July 18, 201115 yr Author Just this site. Even though the non-www works, we need to setup a redirect so it's not treated as a separate domain.
July 18, 201115 yr .htaccess file in the root of the website RewriteEngine on RewriteCond %{HTTP_HOST} ^example\.com$ [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
July 18, 201115 yr We're on IIS, thanks though fail! ;P no worries, there is a alternative but costs... like most windows related stuff http://www.micronovae.com/ModRewrite/ModRewrite.html
July 18, 201115 yr Author I found this: Microsoft servers do not have a .htaccess file to alter so we suggest that you contact your hosting provider and request they make this change for you. If they are baffled or need further instructions on how to make the changes you can refer them to the tutorials referenced below: Using Internet Services Manager create a new IP-based website using the http://example.com'>http://example.com'>http://example.com URL or alternatively you can avoid using a unique IP by using the host header (virtual website) of www.example.com. Now verify the server headers for each website using the Server Header Checker. The server response should be 200 OK for both addresses. Now add your domain-revised version of the following ASP code to the default home page for http://example.com:< %@ Language=VBScript %> < % Response.Status=”301 Moved Permanently” Response.AddHeader “Location”, http://www.example.com %>Note: do not change the spacing or line placement within the above code; place it as is. Once the default page is online first visit your website via http://example.com to ensure the redirect is working. Next check the server headers for http://example.com and make sure you see the following code within #1: “HTTP Status Code: HTTP/1.1 301 Moved Permanently”. That code will confirm the 301 redirect is being properly communicated. Read more: How to 301 Redirect Non-WWW to WWW URLs | StepForth Web Marketing Inc. Under Creative Commons License: Attribution What I don't understand, is where I'm placing this default page. I don't have access to our hosting except via FTP, and I only have FTP for the www?
July 18, 201115 yr Author Does anyone basically know how to 301 redirect the non www to the www, on a wordpress site hosted on an IIS server? I need to do this but I don't know how
Create an account or sign in to comment