Domino 301 redirect for site.com -> www.site.com
Posted by Bruce Lill on February 3rd, 2010 | Category:
Someone asked me how do you redirect users to the www.domain.com address if they just entered domain.com in the browser. It seems the search engines will see the two as different sites and not combine the ranking's. Since the web is all about the ranking and not the content, I will describe how you go about doing this.
It seems that a 302 redirect means temporary and the search engines then keep the links, where the 301 is special, it says the URL has been permanently moved and the search engine should just ignore it and concentrate on the real site.
First you need 2 web site document, one for www.domain.com and one for domain.com.
Under the www.domain.com you will have the response header rules for images, js, css files to set the expiration dates. Also any substitution rules you need.
Under the domain.com web site doc you will have only the one redirection rule.
DON'T COPY! Create the documents from scratch. I have had a lot of problems with rules or websites docs not working, only to re-create them and it all works. It was faster to re-enter then search for the problem fields.
The Yes checkbox will be enabled after you enter the redirect to url.
This is tied to a web site document for activism2go.com. this is the only rule under the web site.
Now restart the server, I have had mixed luck restarting just http, so I go clean to make sure everything is updated.
Verification of the redirect rule.
HTTP/1.1 301 Moved Permanently
Server => Lotus-Domino
Date => Wed, 03 Feb 2010 17:14:12 GMT
Location => http://www.activism2go.com/act2go.nsf
So for each www.domain.com. site you host you should have a domain.com site and redirect rule.
Comments (2)
Nice article, thanks for the information.
Thanks so much for posting this Bruce!
I had posted this query in both the public & BP forums, and was about to embark on some (crude) DSAPI development to try and achieve this exact thing.
It just so happens I am out at the very same client for whom I was attempting that feat, and ran across your post. I just gave your tip a go, and it worked like a dream.
Thanks again mate!!
T.