Hello,
Does anyone knows a way to hide a template url when i call some page?
Ex.:
I have this URL: http://mywebsite/template_name/page
And I want my URL like this: http://mywebsite/page
Thanks!
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
August 23, 2012 10:19am
Subscribe [2]#1 / Aug 23, 2012 10:19am
Hello,
Does anyone knows a way to hide a template url when i call some page?
Ex.:
I have this URL: http://mywebsite/template_name/page
And I want my URL like this: http://mywebsite/page
Thanks!
#2 / Aug 23, 2012 11:04am
Template names are part and parcel of how EE uses URLs to determine output.
If you don’t want the template name in the URL, then you’ve a couple options:
- Use the Pages module which lets you set the URL and dictate the output template from the CP
- Code up a more complex site index templates that behaves differently when there are more segments to the URL
- Look for an addon that does this (I believe there is at least one maybe more).