[thelist] redirect home or home/ to home/index.php

Bob Meetin bobm at dottedi.biz
Fri Dec 14 10:13:29 CST 2012


Ordinary web home or webroot as it is called:

/home/$account/www/.htaccess

If someone visits www.$site.com or www.$site.com/ they will be 
redirected to www.$site.com/index.php

Someone I read that doing this can cause a redirect loop



On 12/14/2012 08:13 AM, Lee Kowalkowski wrote:
> On 14 December 2012 14:08, Bob Meetin <bobm at dottedi.biz 
> <mailto:bobm at dottedi.biz>> wrote:
>
>     I have a site that needs to use $home/index.php as the home page;
>     I have this code in the .htaccess  but it does nothing:
>
>     RewriteEngine On
>     RewriteBase /
>
>     DirectoryIndex index.php
>
>     Something else?
>     -Bob
>
> Is the .htaccess file in a folder, called home?  Just DirectoryIndex 
> would be sufficient in that case (but it will not redirect the 
> browser, it will just serve home/index.php).
>
> Rewrite isn't always redirect.  Did you mean a HTTP redirect using 302 
> Found, or a rewrite where /home is an alias for /home/index.jsp?
>
> -- 
> Lee
> www.webdeavour.co.uk <http://www.webdeavour.co.uk>



More information about the thelist mailing list