At present the pages which I create and publish always hang off the domain itself. So I am wondering how I can achieve the /category-name1/ part in the Url. Would I need to look at Url Rewriting?
This approach will probably create too much work if you have a lot of pages and categories. If that's the case you'll probably have to look into creating some kind of category/tagging system combined with a custom template if I understand your problem correct.
Thanks for replies. I went with the umbracoUrlAlias in the end. It seems to work fine. It intially didn't work as the entries weren't in lower case. But I understand this is an outstanding bug.
URL Rewriting?
Hello
I am working on site site using Umbraco 4.0 where I need to publish pages which are accessible off of a URL such as:
www.domain.com/category-name1/pageName.aspx
www.domain.com/category-name2/pageName.aspx
At present the pages which I create and publish always hang off the domain itself. So I am wondering how I can achieve the /category-name1/ part in the Url. Would I need to look at Url Rewriting?
Many thanks
Simon
Hi Simon,
There's a settings in web.config to enable to include level 1 nodes in your url path:
(it's set to "true" in standard umbraco installation)
Cheers,
/Dirk
If you're thinking about url rewriting you can achieve this much easier by adding a property to your doctype called umbracoUrlAlias. You can read about it here: http://our.umbraco.org/wiki/reference/umbraco-best-practices/umbracourlalias
This approach will probably create too much work if you have a lot of pages and categories. If that's the case you'll probably have to look into creating some kind of category/tagging system combined with a custom template if I understand your problem correct.
Regards
Jesper Hauge
Thanks for replies. I went with the umbracoUrlAlias in the end. It seems to work fine. It intially didn't work as the entries weren't in lower case. But I understand this is an outstanding bug.
Hello.
i am new to umbraco. i have one used car exporter website based on umbraco.
my url is like this "http://www.sitename.com/make=21&c=na&name=honda
i would like to rewrite this url, but i am not getting the rewritten url in address bar. its still showing the old url.
i have created the link like this:
li><a href='/stocksearch.aspx?make=21&c=na&name=toyota'>TOYOTA</a></li>
currently i am writing the rule in urlrewriting.config like this:
add name="makenamerewrite" virtualUrl="^~/(.*)/(.*)/(.*).aspx" writeUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/stocksearch.aspx?make=$1&c=$2&name=$3" ignoreCase="true" />
<
i have turned on these two bits in web.config.
umbracoHideTopLevelNodeFromPath=true
umbracoUseDirectoryUrls=true;
i have also done the wildcard mapping in IIS.
Kindly help me asap.
Thanks alot
<
hi,
My Page URL is like ~/new-page.aspx??lang=en&mId=1556&sId=1557 as shown in above image...
Now i want that when i open this page then my URL should be like this.. ~/New-page/Goog-page as shown in image...
Is this possible..??
Can anyone have idea about that than please tel me..
Thanks in Advance...
is working on a reply...