Forum Moderators: coopster

Message Too Old, No Replies

Accessing www.mysite.com/

I've been using a trailing forward slash...but now

         

russgri

5:04 pm on Apr 21, 2003 (gmt 0)

10+ Year Member



Traditionally, I have been accessing my site, which contains
an index.html
file in each folder, by using a trailing forward
slash...www.mysite.com/

I started using php template includes with
an .htaccess file:
<Files ~ "\.inc$">
Order allow,deny
Deny from all
</Files>
AddType application/x-httpd-php .php .php3 .phtml .html

Now, I have to type in the index.html or php to access the
site.

users probably have to also.

Is there a another way and what is the explanation?

jdMorgan

6:00 pm on Apr 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



russgri,

It looks like declaring the file type "html" as an application is bypassing the usual automatic redirect of "/" to index.html. In a default setup, domain.com and domain.com/ are redirected to the default index file. Declaring that filetype (index.html) as an application may bypass this function.

You could try a manual .htaccess redirect of domain.com and domain.com/ to domain.com/index.html, and see if that helps.


Options +FollowSymLinks
RewriteEngine on
RewriteRule ^$ /index.html [L]

I haven't run into this problem before, so maybe someone who has can be more helpful...

Jim