Webhosting | Hosting - My Hosting PartnerWebhosting | Hosting - My Hosting PartnerWebhosting | Hosting - My Hosting PartnerWebhosting | Hosting - My Hosting Partner

Web.config and htaccess files

Web.config and htaccess files
MijnHostingPartner

Web.config and htaccess files

Web.config and htaccess files

At MijnHostingPartner.nl we make use of Microsoft IIS for the servers on which your websites reside. With Microsoft Internet Information Services you can use htaccess files as well as web.config files. These are files that can be used to manage a lot for your website.

Think of securing a folder with a password, setting up https redirect and making your URLs beautiful. Besides those three things there is much more you can do with them. The sky is the limit.

Most Content Management Systems have both an htaccess file and a web.config file. These files are often located next to each other in the root of the website files. When only a htaccess file is present then this can cause a number of problems.

There are rules in a htaccess file that are only suitable for Apache servers. We therefore recommend to use a web.config file instead of a htaccess file in almost every case.

What are the consequences of this?

A web.config file within IIS will work faster and more reliably. This is because IIS always prioritizes a web.config file over an htaccess file. Faster work means that your website can load faster.

An item that is extremely important for all websites. A web.config file looks like this in the standard layout of MijnHostingPartner.nl. Rules from a htaccess file are easy to translate to a web.config file. You have several possibilities for this. The first possibility is to use the information that we provide here in the knowledge base.

In addition, the documentation from Microsoft itself is also very extensive on this subject. And finally, there are also automatic tools available to translate htaccess files to a web.config file. Within your Hosting you can then simply upload the new file.

For questions about converting you can always contact our technical department via the online chat or via a ticket in the customer panel. We can then quickly point you in the right direction to get your website working optimally!