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.

Removing index.php problem

August 23, 2007 1:52pm

Subscribe [3]
  • #1 / Aug 23, 2007 1:52pm

    insomnie

    56 posts

    RewriteEngine On
    
    RewriteCond $1 ^({exp:query sql="SELECT group_name FROM exp_template_groups"}{group_name}|{/exp:query}P[0-9]{2,8}) [NC]
    
    RewriteRule ^(.*)$ /index.php/$1 [L]

    This is the code I am using and it gives me this error:

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, .(JavaScript must be enabled to view this email address) and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

    [Moderator Edit: Moved to How To forum]

  • #2 / Aug 23, 2007 2:08pm

    Cocoaholic

    445 posts

    Looks like you have taken the code from this wiki article and mistakenly pasted it directly into your .htaccess file.
    http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method

    Please check the article for the correct use of the code you posted.

  • #3 / Aug 23, 2007 2:12pm

    insomnie

    56 posts

    Looks like you have taken the code from this wiki article and mistakenly pasted it directly into your .htaccess file.
    http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method

    Please check the article for the correct use of the code you posted.

    When i do this it gives me
    Error

    The following tag has a syntax error:

    {exp:query}

    Please correct the syntax in your template

  • #4 / Aug 23, 2007 2:17pm

    Cocoaholic

    445 posts

    Ok, it shouldn’t.

    Please copy/paste the exact code from _your_ template and post it so we can see what’s wrong.

  • #5 / Aug 23, 2007 2:20pm

    Lisa Wess

    20502 posts

    The query module is only included in the licensed version of EE -are you running EECore?

  • #6 / Aug 23, 2007 2:22pm

    Cocoaholic

    445 posts

    @Lisa,

    That might explain it… didn’t know that btw!

  • #7 / Aug 23, 2007 2:28pm

    insomnie

    56 posts

    The query module is only included in the licensed version of EE -are you running EECore?

    Huh, yes! Thanks for the tip. I used a different method to fix my problem. Everything is dandy now. How do I make a custom 404 page? Can this be a template file?

  • #8 / Aug 23, 2007 2:28pm

    Ingmar

    29245 posts

    I’m betting a bottle of (good) White on EE Core.

    EDIT: Ah, too late. Will drink it myself then.

  • #9 / Aug 23, 2007 3:49pm

    insomnie

    56 posts

    I’m betting a bottle of (good) White on EE Core.

    EDIT: Ah, too late. Will drink it myself then.

    Haha, I’m more of a beer typa guy.

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

ExpressionEngine News!

#eecms, #events, #releases