Most of the time, extra domains are bought for easier communication, claiming a generic word or alternations on the main domain name. Some customers have multiple domains that need to be directed to the main site. Some hosting providers offer Plesk which has the option to force SSL but if you don’t have that option or feel more comfortable to use the web.config, here are 2 examples how you can do this. So, we’re going to redirect them to the SSL version. Next stop is to ensure visitors are not getting the non-ssl version of your website. Certificates are cheap or free and installing them has never been easier. These days, there is really no debating whether SSL is mandatory or not. If not, you can copy the code below and put in your own domain name. And all of them use regular expressions, so it helps if you can read them. Your piece of work goes below this, so it will become like: Your redirect section itself will look like There is the section of your redirect rules and where you put it in the existing web.config. So, your web.config needs to be constructed in a certain way. I always have a standby so I can use Filezilla to revert. A mistake can take your website down, so always backup your web.config. This wiki is intended to start with some common scenarios, not to be complete at first start.Įditing your web.config is something you need to do carefully. You could think of a marketeer that likes to communicatie that is actually This is the kind where you could create a page ‘sale’ in DNN and tell the settings to redirect But there are other scenarios where you have to dig into the web.config to accomplish what you want. Redirects are important in many scenarios.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |