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.

Urgent HTACCESS and EE Templates Help

April 13, 2012 9:03am

Subscribe [3]
  • #1 / Apr 13, 2012 9:03am

    UKFreelancer

    49 posts

    Hi,

    I’m getting nowhere with this and need Technical Support.

    If I’ve got a template group called “mygroup” and I want anything after the Domain name to use that templategroup/template, what do I need to put in the .htaccess file?

    e.g.

    http://mydomain/alpha would use the mygroup/index template,
    http://mydomain/beta would also use the mygroup/index template,

    http://mydomain/alpha/beta would use the mygroup/beta template
    http://mydomain/charlie/beta would also use the mygroup/beta template

    http://mydomain/charlie/delta/alpha would use the mygroup/beta template with the parameter “alpha”
    http://mydomain/delta/echo/charlie would use the mygroup/beta template with the parameter “charlie”

    Obviously http://mydomain/system and any other EE default stuff would still need to go the system folder NOT use the mygroup/template.

    Site due to go live today BTW.

    UKFreelancer

  • #2 / Apr 13, 2012 9:30am

    mark186282

    290 posts

    If I’m not mistaken, you simply need to make “mygroup” the default template group (ours is called “home” and works exactly like you describe, with the default .htaccess file that removes index.php)

    In your template manager, select the group “mygroup” from the left, then “edit group” from the right area… then check the box to make that group be the default for your site.

    htaccess information:
    http://ellislab.com/expressionengine/user-guide/general/remove_index.php.html

    <IfModule mod_rewrite.c> 
    RewriteEngine On
    
    RewriteCond $1 !\.(gif|jpe?g|png|ico)$ [NC] 
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteRule ^(.*)$ /index.php/$1 [L] 
    </IfModule>

     

    I hope this helps

  • #3 / Apr 13, 2012 10:45am

    UKFreelancer

    49 posts

    I’ve done that and it hasn’t worked.

    UKFreelancer

  • #4 / Apr 13, 2012 10:52am

    mark186282

    290 posts

    what are your symptoms?

    what pages load when you go to the addresses above?

    ...

    You can half-split the problem into two main solvable issues:

    1.  the management of template groups and templates (i.e. does the right content come up with the requested template group and tempaltes…) - this is solvable with EE config

    2.  with the above working, can I perform the same operations without using /index.php/ in the URL - this is solvable with htaccess

    can you get to /index.php/mygroup/template okay? (try the above paths with the index.php… do they work?)

    if not, let’s work on the EE config…

    if those work, and it just fails when you try to do the same thing without /index.php/ - then that’s an htaccess deal… and is troubleshoot differently

  • #5 / Apr 16, 2012 11:03am

    Dan Decker

    7338 posts

    Hi UKFreelancer,

    I appreciate your urgent need here! However, we can only provide support for if you are using the official means of removing index.php with .htaccess Any other directives are out of our scope.

    With that said, if you would care to supply the .htaccess directives you are using as well as some sample code from the template that is giving you trouble, I’d be happy to offer advice.

    Cheers,

  • #6 / Apr 17, 2012 3:13am

    UKFreelancer

    49 posts

    Since when is standard EE functionality out of scope?

    I want all my pages to use the same templategroup.

    So http://mydomain/a will use mytemplategroup
    and http://mydomain/b will also use mytemplategroup

    How do I do it using your product?

  • #7 / Apr 17, 2012 4:08am

    mark186282

    290 posts

    The three settings I would suggest confirming are these:

    Check Strict URL Settings Information here:
    http://ellislab.com/expressionengine/user-guide/cp/design/templates/global_template_preferences.html

    Template Group Settings here:
    http://ellislab.com/expressionengine/user-guide/cp/design/templates/new_template_group.html

    and

    Removing of index.php here:
    http://ellislab.com/expressionengine/user-guide/general/remove_index.php.html

    ————

    With those three configurations correct, you should be good to go. If you are not, then please provide exactly what symptoms you are experiencing so we can help you solve the problem.

    What, exactly, are you experiencing?

  • #8 / Apr 18, 2012 5:27pm

    Shane Eckert

    7174 posts

    Hey UKFreelancer,

    Can you give those three settings that Mark suggested a try?

    I would also like to see your complete .htaccess file.

    Thanks for the assist Mark!

    Hope your week is going well.

    Cheers!

  • #9 / May 08, 2012 6:10am

    UKFreelancer

    49 posts

    Thanks for all the advice.

    Site is now live, being an Extranet the outside world won;t see it.

    UKFreelancer.

  • #10 / May 09, 2012 4:44pm

    Shane Eckert

    7174 posts

    Hello UKFreelancer,

    Glad to hear it!

    Is there anything else I can help with?

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases