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.

default template group

December 18, 2014 8:35am

Subscribe [3]
  • #1 / Dec 18, 2014 8:35am

    TimBlok

    3 posts

    The default group that opens when I open the site I work on is a duplicate of a group I can navigate to on my site. So :

    http://www.mywebsite.com is the same as http://www.mywebsite.com/info

    This duplicate creates problems for search engines and affects the ranking in those search engines.

    In the template manager I can check a box in a group to make it the default group but I don’t want that default group to then have its own page as well.

    Is there a way around this? If i don’t assign a default group it leaves the page empty.

    Thanks!

  • #2 / Dec 18, 2014 9:07am

    Boyink!

    5011 posts

    How are the search engines finding that group? Are you including it in other links?

    It’s probably going to take some redirect work either in HTACCESS or your templates to remove that segment if you don’t want it.

    Are there other templates in that group?

    And just to be clear..it’s not that you have two template groups just one group where the index template is loadable at two urls….right?

  • #3 / Dec 18, 2014 10:32am

    TimBlok

    3 posts

    Hey,

    When I open the site it shows the news page which I made the default page (so http://www.mywebsite.com). But when I click on the ‘news’ button it loads the news page which is the same as the default page(so http://www.mywebsite.com/news)  so now I have two pages that show the exact same content on the site.

    I have multiple groups for the different parts of the site, not multiple templates in one group.

  • #4 / Dec 18, 2014 10:35am

    Boyink!

    5011 posts

    So change the code powering the News button so that it doesn’t render the /news. You can use the {site_url} linking variable.

  • #5 / Dec 18, 2014 11:15am

    TimBlok

    3 posts

    Thanks, that worked! The {site_url} was on news (so “{site_url}news”) I removed the news part
    (”{site_url}” and now it links back to the main page.

    The problem I have now is that http://www.site.com/news still exists so I still have duplicate pages
    Is it possible to have a page be the default group and not another page? http://www.site.com and www.site.com/example have have same content because ‘example’ is the default group so I want http://www.site.com/example to not exist.

  • #6 / Dec 18, 2014 11:17am

    Boyink!

    5011 posts

    No, it’s not possible for them not to exist. But you can add HTACCESS redirects and template-level redirects such that those URLs should not get indexed.

  • #7 / Dec 21, 2014 1:21pm

    TimBlok

    3 posts

    Thanks!

    Where do I find/put the .htaccess file? I dont think its working right now for me, I found a guide for how to redirect the page but its still not working.

  • #8 / Dec 22, 2014 6:13am

    Riverboy

    2993 posts

    You have to create it yourself and put it to same folder where your site’s main index.php file is located.

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

ExpressionEngine News!

#eecms, #events, #releases