Well, depending on what your rss template does you might get the same output no matter the url? In your example, you're basically appying the rss template to the homepage (the "/" url).
I have a template called Sitemap which is generated using in-built xslt code. The node name is called Site-map. When i click the "site map" link in my website it shows the site map information one of my clients typed http://www.mydomain.ac.uk/sitemap (which is the alias of the sitemap template), the home page got replaced by the sitemap information. Any ideas how I can change so that when sitemap is typed it shows 404 error instead of site-map tempalte information.
Template alias as URL
Hello Umbraco Colleagues,
What configuration is necessary so that the template alias assigned to a node becomes that node's url?
David Hill
Too easy!
Assuming you have a page at url: www.example.com/mypage.aspx
Assuming you have a template with an alias of 'rss'...
Either of these will work: www.example.com/mypage.aspx?altTemplate=rss or www.example.com/mypage/rss.aspx
No configuration necessary.
cheers,
doug.
Thank you, doug -
However... (using your example), I am also able to access the page at this url: www.example.com/rss.aspx
I don't know why that would be.
David
Well, depending on what your rss template does you might get the same output no matter the url? In your example, you're basically appying the rss template to the homepage (the "/" url).
Make sense?
cheers,
doug.
Ah - OK.
Thank you, doug.
David Hill
Can anybody tell me how i can stop template alias as url?
you can't and that's by design...
Thanks Dirk.
I have a template called Sitemap which is generated using in-built xslt code. The node name is called Site-map. When i click the "site map" link in my website it shows the site map information one of my clients typed http://www.mydomain.ac.uk/sitemap (which is the alias of the sitemap template), the home page got replaced by the sitemap information. Any ideas how I can change so that when sitemap is typed it shows 404 error instead of site-map tempalte information.
Thanks
is working on a reply...