I've tried to see if I could edit your post where you post the content from your web.config. Ufortunately I can't - So therefore I would urge yourself to do it, to remove the part with your connection string.
If you can't edit it either, is it ok if I delete it then? Credentials are on display, which for your own safety's sake they should not be.
/home/ doesn't work, /home does, why?
I am using @umbraco.library.NiceUrl(@Id) to create URLs. The URLs it creates end with a /
eg http://www.activia.com.au/activia-products/
However, the ending / is not working for the Home page
http://www.activia.com.au/Home/ doesn't work whilst
http://www.activia.com.au/Home
does.
How can I get http://www.activia.com.au/Home/ to work?
Hi Petras
Is the umbracoUseDirectoryUrls set to true in the web.config file? (In the appSettings section).
/Jan
the umbracoSettings.config has an option to remove the trailing slash '/' from urls.. I'd recommend you give that a try.
I tried modifying
<addTrailingSlash>false</addTrailingSlash>
But that doesn't seem to do anything.
Is there any other url rewriting rules in your web.config?
Look for an <urlrewrite> tag and see if there is anything there related to your home page.
There are no rewriting rules.
I can't see that tag in web.config or any other config.
BTW, this is a 4.7 install.
It means you don't have any iis rewrite rules messing stuff up. :)
What's also weird, the adress http://www.activia.com.au/home/home/home also points to /home...
Do you have a template with the alias "home"?
Hi Petras
I've tried to see if I could edit your post where you post the content from your web.config. Ufortunately I can't - So therefore I would urge yourself to do it, to remove the part with your connection string.
If you can't edit it either, is it ok if I delete it then? Credentials are on display, which for your own safety's sake they should not be.
/Jan
Hi Petras
I deleted the post with your appSettings due to security concerns on your behalf. I hope your ok with that.
When you copy/paste stuff from the web.config please make sure your credentials are not being displayed for the whole world to see :-)
To sum it up shortly for those who want to help you out: umbracoUseDirectoryUrls IS set to true in the appSettings.
/Jan
The password in web.config does not work but the post has been removed anyway by Jan. Thanks for that.
Yes, I do have a template with the alias "Home".
Hi Petras
Ok, but I better like to be safe than sorry :-)
/Jan
Could you try to rename that template to for example "HomePage"?
I tried this and it worked!
Then I renamed it back to Home and for some reason the trailing slashes have disappeared.
It's as though <addTrailingSlash>false</addTrailingSlash> suddenly kicked in.
I was pretty sure I republished the site after adding it last time.
I am going to use <addTrailingSlash>false</addTrailingSlash> as a standard from now on.
is working on a reply...