I don't want /home/ to show in the URL. I want it to look like this: http://mysite.com/welcome/ Now I know I could remove all the pages and stuff out from the "Home" node and take care of this problem. However, if I could work around it that would be great because I really like having that organization.
So in my UrlRewriting.config file I have written this bit of code:
Thanks for your pointer. That actually works great, however it's breaking my uBlogsy install since that has a topLevelNode too.. hmmm Trying to work out a way to work around that now.
Hide /home/ directory in URL
Ok so I have a site currently with URLS like:
http://mysite.com/home/welcome/
I don't want /home/ to show in the URL. I want it to look like this: http://mysite.com/welcome/
Now I know I could remove all the pages and stuff out from the "Home" node and take care of this problem. However, if I could work around it that would be great because I really like having that organization.
So in my UrlRewriting.config file I have written this bit of code:
Now this code works, so that if I manually type in the address:
http://mysite.com/welcome/
It pulls up the page and everything looks great...
HOWEVER.. all of my links on my site still point to URLs that include /home/ in the URL and therefore go to error 404 pages.
How can I fix this issue? Is there a better way to hide the /home/ directory in the URLs?
Would love some help in "Novice" terms im still pretty new to .Net in general.
THANKS!!!
Hey,
In the web.config there is an appSetting called umbracoHideTopLevelNodeFromPath, I think setting this to true will do what you want.
Cheers,
Greg.
Hi Greg!
Thanks for your pointer. That actually works great, however it's breaking my uBlogsy install since that has a topLevelNode too.. hmmm Trying to work out a way to work around that now.
Hmm that's not good, I think you'd better alert the author of that package by posting in the package forum.
http://our.umbraco.org/projects/starter-kits/ublogsy
I've never used uBlogsy so can't assist there unfortunately.
Cheers,
Greg.
Well I was able to compensate for this via a rewrite rule:
Sooo I guess that will cover all my angles at this point.. thanks!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.