[thelist] redirect home or home/ to home/index.php
bobm at dottedi.biz
Fri Dec 14 10:13:29 CST 2012
Ordinary web home or webroot as it is called:
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?
> 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?
> www.webdeavour.co.uk <http://www.webdeavour.co.uk>
More information about the thelist