If you have questions about using mojoPortal, you can post them here.
You may want to first review our site administration documentation to see if your question is answered there.
Hi
Currently my website can be accessed by either http://winkell.co.uk or http://www.winkell.co.uk - i want to ensure that all requests are serviced by the http://www.winkell.co.uk. I have found instructions on the web for entering code into web.config under the <system.webServer> tag such as:
<rewrite>
<rules> <rule name=”Add WWW prefix” > <match url=”(.*)” ignoreCase=”true” /> <conditions> <add input=”{HTTP_HOST}” pattern=”^domain\.com” /> </conditions> <action type=”Redirect” url=”http://www.domain.com/{R:1}” redirectType=”Permanent” /> </rule> </rules> </rewrite>
However this just gives me errors. How can i configure a redirect so that any requests to http://domain.com/* go to http://www.domain.com/* ?
Thanks
Andy
Hi Andy,
There is built in support for this in mojoPortal.
See Forcing a Preferred Host Name.
Best,
Joe
Thanks Joe,
Didn't know about that setting. Worked a treat.