I have a website that using umbraco 4.0.2.1. here is the structure of the website.
I am using a umbraco redirect to redirect the site to home . so the domain would be something like this: www.domain.com/home , What I would like to do is to get ride of Home in the URL and make the default URL of home page to www.domain.com.
I can easily do this in umbraco 4.0.3 by just removing umbraco redirect from site page, and make the umbracoUrlName to / for home. but this approach doesnt work on 4.0.2.1. there is no possibity of upgrading the umbraco as the website is vey huge.
umbrco redirect the root to the 2nd level node
Hi,
I have a website that using umbraco 4.0.2.1. here is the structure of the website.
I am using a umbraco redirect to redirect the site to home . so the domain would be something like this: www.domain.com/home , What I would like to do is to get ride of Home in the URL and make the default URL of home page to www.domain.com.
I can easily do this in umbraco 4.0.3 by just removing umbraco redirect from site page, and make the umbracoUrlName to / for home. but this approach doesnt work on 4.0.2.1. there is no possibity of upgrading the umbraco as the website is vey huge.
Any suggestion or work around?
Thanks
Ali
Hey,
Can't you just move the structure to the more normal:
Content
------- Home
------------------ News
------------------ Finance
Basically just replace 'Site' with the home node
Rich
Or you could add this to the UrlRewriting.config file:
Sebastiaan wrote about this over here: http://cultiv.nl/blog/2010/12/19/tip-of-the-week-the-ultimate-site-structure-setup/
Hi
Rich:Unfortunately I can't move the structure as the site is very huge.
Roel: thanks for the link, but still the rule does not redirect the /home to / , any idea?
Thanks
Ali
thanks guys,
I have used the above rule with a little change. in line 2 I have removed the / after home and that fixed the problem. ^~/home$
@Ali yes, it depends on if you have "addTrailingSlash" set to "true" in config/umbracoSettings.config
I believe this config setting was introduced in a newer version than the one you are using.
is working on a reply...