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.

Remove index.php from URLS

September 28, 2007 7:09am

Subscribe [2]
  • #1 / Sep 28, 2007 7:09am

    cbis

    7 posts

    Hi,

    I inserted the code as outlined in my httpd.config file in my root directory (not system) folder as directed in the related wiki.

    RewriteEngine on
    RewriteCond $1 ^(search|bis|P[0-9]{2,8}) [NC]
    RewriteRule ^(.*)$ /index.php/$1 [L]

    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]

    I chaned the index.php as outlined in the admin section also.

    When I tried to restart my server after making changes, there was an error.  Does this code need to go in specific place in the config file, or is there something else I need to do?

    Thanks!

  • #2 / Sep 28, 2007 8:41pm

    grantmx

    1439 posts

    Did you add the recommended code in your .htaccess file too?  Not to sure of the httpd.config and .htaccess file relation.

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

ExpressionEngine News!

#eecms, #events, #releases