Umbraco on subdomain shows subfolders in urls (godaddy)
Hello!
Environment: Godaddy shared hosting. I have the folder set as application root.
I have umbraco 7 installed on a godaddy subdomain, and everything is working great except for the URLs.
My site is installed in /root/projects/website, and I have a subdomain pointed to the website folder, but when I visit the subdomain all links (generated using NiceURL(pageid)) also include the folders, like this:
website.example.com/projects/website/page
instead of this:
website.example.com/page
SO! I thought maybe It's an MVC routing issue, I installed a base 2015 MVC project onto a subdomain and noticed that it did the exact same thing! After some googling i came across a web.config rewrite rules solution that fixed it for my MVC project, but unfortunately the same solution did not work for my Umbraco installation.
The incompatible mvc solution was to add this to the system.webserver node of my web config:
I noticed there is a url rewriter that is already hooked up in the umbraco installation, would I be able to create some kind of rule that does this in the urlrewriter.config?
Umbraco on subdomain shows subfolders in urls (godaddy)
Hello!
Environment: Godaddy shared hosting. I have the folder set as application root.
I have umbraco 7 installed on a godaddy subdomain, and everything is working great except for the URLs.
My site is installed in /root/projects/website, and I have a subdomain pointed to the website folder, but when I visit the subdomain all links (generated using NiceURL(pageid)) also include the folders, like this:
instead of this:
SO! I thought maybe It's an MVC routing issue, I installed a base 2015 MVC project onto a subdomain and noticed that it did the exact same thing! After some googling i came across a web.config rewrite rules solution that fixed it for my MVC project, but unfortunately the same solution did not work for my Umbraco installation.
The incompatible mvc solution was to add this to the system.webserver node of my web config:
Is there something similar I can do with my umbraco site?
Any help appreciated. Thank you.
I noticed there is a url rewriter that is already hooked up in the umbraco installation, would I be able to create some kind of rule that does this in the urlrewriter.config?
is working on a reply...