News:

The "Support Requests" forum is now viewable by guests.

Main Menu

htaccess

Started by ishbog, October 27, 2005, 09:11:26 PM

Previous topic - Next topic

ishbog

how do i make this file in order to allow an index.php file? or... something? what should i name the .htaccess?

pythonpoole

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?

ishbog

like, making it go to something other than index.html

admin

Delete the index.html file and it will read index.php if it exists.

Thank you,
FreePgs.com Admin

pythonpoole

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/

admin

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

pythonpoole

Oh, ok thanks. I thought htaccess files only affected the folder they're in, not sub-folders they contain.