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.

Redirecting to Exp. engine folder

September 26, 2007 4:46pm

Subscribe [3]
  • #1 / Sep 26, 2007 4:46pm

    envindia

    4 posts

    How do you force somenone who goes to example - http://www.mydomain.com to go to http://www.mydomain.com/subfolder/index.php where my EE index page is located.

    I think someone answered it earlier but I don’t seem to locate it.

    Thanks
    CK

  • #2 / Sep 27, 2007 10:23pm

    grantmx

    1439 posts

    You can use a javascript redirect in the index page on your root.

  • #3 / Sep 28, 2007 6:08am

    MID

    166 posts

    If your server supports it, I would use an .htaccess file in the root directory containing, for example:

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ subfolder/index.php/$1 [L]
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases