[thelist] redirect home or home/ to home/index.php
lee.kowalkowski at googlemail.com
Fri Dec 14 09:13:07 CST 2012
On 14 December 2012 14:08, Bob Meetin <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?
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?
More information about the thelist