I used to work mainly with php, but transitioned to umbraco.
Some of the things i used to control in the .htaccess file, im having trouble doing in the umbraco cms.
Genereally im having trouble understanding the whole setup with the web.config file, and the config folder.
Also i cant seem to make the 301 redirect work, to remove www from my url. I have tried various solutions from 4 different sources, but it just wont work.
The web.config is a ASP.NET web application file, and the config folder is Umbraco specific settings files. Is there anything in specific that you fine confusing about these two?
When it comes to your 301, this one is used in one of our site and it works great. It should be placed in your web.config, within configuration/system.webServer:
Hi Dennis!
Thank you very much. At first, when i implemented your code, it didnt work, but it turns out i made a typo, so now it works perfectly!
Thank you so much :)
301 redirect to remove www in url.
Hi umbraco forum.
I used to work mainly with php, but transitioned to umbraco. Some of the things i used to control in the .htaccess file, im having trouble doing in the umbraco cms.
Genereally im having trouble understanding the whole setup with the web.config file, and the config folder.
Also i cant seem to make the 301 redirect work, to remove www from my url. I have tried various solutions from 4 different sources, but it just wont work.
I hope you can help me out :)
Best regards.
Hi Asger!
The web.config is a ASP.NET web application file, and the config folder is Umbraco specific settings files. Is there anything in specific that you fine confusing about these two?
When it comes to your 301, this one is used in one of our site and it works great. It should be placed in your web.config, within configuration/system.webServer:
Hope it helped!
Have a great day!
Maybe a given, but just in case: Did you replace "yourdomain.com" with the url for the website?
Hi Dennis! Thank you very much. At first, when i implemented your code, it didnt work, but it turns out i made a typo, so now it works perfectly! Thank you so much :)
Glad it worked out for you Asger!!
Have a great day! Hope you enjoy Umbraco so far!! :)
Hi Dennis.
Thanks for helping the last time. Do you happen to know how i can remove // from the url aswell with a similar rule?
Thanks :)
is working on a reply...