FreePgs.com Forum

FreePgs Related => Support Requests => Topic started by: ishbog on October 27, 2005, 09:11:26 PM

Title: htaccess
Post by: ishbog on October 27, 2005, 09:11:26 PM
how do i make this file in order to allow an index.php file? or... something? what should i name the .htaccess?
Title: Re: htaccess
Post by: pythonpoole on October 27, 2005, 09:26:47 PM
You name the .htaccess file ".htaccess" (without quotes) its like a file with no filename.. its just a .htaccess file, thats all you call it.

And what do you mean by allowing an index.php file?
Title: Re: htaccess
Post by: ishbog on October 27, 2005, 10:16:15 PM
like, making it go to something other than index.html
Title: Re: htaccess
Post by: admin on October 28, 2005, 01:42:55 AM
Delete the index.html file and it will read index.php if it exists.

Thank you,
FreePgs.com Admin
Title: Re: htaccess
Post by: pythonpoole on October 30, 2005, 05:40:27 AM
I don't understand why this doesnt work then. Hmm Let me create an example to illustrate my problem:

This works: http://scorpionsoftware.org/gmonline/test/index.php

This doesn't: http://scorpionsoftware.org/gmonline/test/
Title: Re: htaccess
Post by: admin on October 30, 2005, 03:13:07 PM
This is because you have the following .htaccess file within your "httpdocs" directory.

DirectoryIndex down.html


You are defining the "DirectoryIndex" to use "down.html"
When you define this via .htaccess, it defines the variable for the current directory and all directories below it.

Please remove the .htaccess file OR modify the contents of the file to include "index.php" after down.html on the same line.

Thank you,
FreePgs.com Admin
Title: Re: htaccess
Post by: pythonpoole on October 30, 2005, 05:44:16 PM
Oh, ok thanks. I thought htaccess files only affected the folder they're in, not sub-folders they contain.