ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Hide the template URL?

August 23, 2012 10:19am

Subscribe [2]
  • #1 / Aug 23, 2012 10:19am

    Engecompany

    1 posts

    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

    Boyink!

    5011 posts

    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).

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases