Forum Moderators: phranque
For a whole bunch of reasons I do not wish setting the content of the tpl/ dir at root level and simply have its index becoming de facto the default index.
I have a few options:
<META HTTP-EQUIV="Refresh" CONTENT="0;URL=http://www.mysite.com/tpl/index.php">
or using .htaccess
redirect 301 /index.html [domain.com...]
Any other options?
Any concerns?
Thank you
1) Performance: There is overhead associated with searching for (and parsing) .htaccess files which can be eliminated by having the configuration in httpd.conf
2) Self-documentation: if all the configuration for a site is in httpd.conf, all your configs are in a central place, rather than scattered all over the filesystem. This also applies to the <META> version; if one keeps behavior like isolated to as few places as possible, things are generally easier. As always, of course, there are exceptions to this; for instance, it may be easier for the folks developing the site's content for them to use META tags so that they don't need to engage you every time they want to add a new one. Obviously, this doesn't really apply if *you're* the one developing the site. =)
How does Google look at Redirect or Meta tag generated
Knowing that the real content will indeed come out of the root/dir/index.php
and also that I am not redirecting from DN A to DN B
RewriteEngine on
RewriteRule ^/($¦index.html$) /tpl/index.php [L]