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
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
September 26, 2007 4:46pm
Subscribe [3]#1 / Sep 26, 2007 4:46pm
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
You can use a javascript redirect in the index page on your root.
#3 / Sep 28, 2007 6:08am
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]