Knowledgebase

Forcing a website to use "www"

Should you need to ensure that your domain is always displayed with 'www' in the address field, the following guidance is used. This is often used with SSL certificates.

Using a PHP / MySQL product

Insert the following into your .htaccess file:

Replace 'domain.tld' with your domain name.

Using a ASP / ASP.NET / MSSQL product

Insert the following into your web.config file:

Replace 'domain.tld' with your domain name.


If you would like Surftown to perform this task for you, or if you are in need of any other assistance, please have a look at the paid services we can offer through our Service Desk Services: https://www.surftown.com/da/service-desk/

Contact
Should you not find what you are looking for then feel free to ask our support

Create A Ticket
Service Desk
Are you facing bigger challenges which requires a bit more know-how and time than you have?

Surftown Service Desk is services where we do the work to you. Our Service desk will get the job done.

Do it for me