Page 1 of 1

.htaccess file

Posted: 10. February 2008 17:42
by liquidspark
I'm not using an htaccess file right now.

If I make one, should I just use

Code: Select all

DirectoryIndex portal.php index.php index.html index.htm
or should I use

Code: Select all

<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
DirectoryIndex portal.php index.php index.html index.htm
:?:

what else should I put in it?

Re: .htaccess file

Posted: 10. February 2008 17:50
by Kevin
This:

Code: Select all

<Files "config.php">
Order Allow,Deny
Deny from All
</Files>

<Files "common.php">
Order Allow,Deny
Deny from All
</Files>

DirectoryIndex portal.php index.php index.html index.htm
But please note: there was a .htaccess in the original phpBB3 package. Maybe you can't see hidden files with your FTP program. In that case switch it over to see hidden files and you should see the original .htaccess.
The content of the original .htaccess:

Code: Select all

<Files "config.php">
Order Allow,Deny
Deny from All
</Files>

<Files "common.php">
Order Allow,Deny
Deny from All
</Files>

Re: .htaccess file

Posted: 10. February 2008 18:22
by liquidspark
For some reason, that .htaccess file didn't upload to my site. I did find it in the folder on my computer, but not on my server.
Perhaps I uploaded the files, rather than uploading the entire folder...

Thanks.

Re: .htaccess file

Posted: 10. February 2008 18:23
by Kevin
You're welcome. :)

Re: .htaccess file

Posted: 12. February 2008 00:30
by thomas.d
Some ftp-programs need to have "show dot-files" in their options to be activated (i.e. "Secure FX")

Re: .htaccess file

Posted: 18. February 2008 18:18
by Ratt
A windows server does not allow the use of .htaccess files. I seen a tutorial somewhere..see if I can find it that can be used as a redirect for the portal for those who have servers that don't allow .htaccess files. Example my server does not allow files that start in . - * @ or any other wild characters.

Re: .htaccess file

Posted: 19. February 2008 21:36
by liquidspark
Wow, that makes me happy to know I'm using a UNIX server :D

If anyone is looking for a hosting server, check out Westhost. They're totally awesome in every way.

Re: .htaccess file

Posted: 19. February 2008 22:20
by Ice
Some windows servers running apache do allow for .htacess and the like because apache handles them and not actually the filesytem, just some providers prefer to block them. Some IIS and windows server configs also allow them but are not always enabled.

Re: .htaccess file

Posted: 26. February 2008 03:57
by Ratt
liquidspark wrote:Wow, that makes me happy to know I'm using a UNIX server :D

If anyone is looking for a hosting server, check out Westhost. They're totally awesome in every way.

Actually there is no need for .htaccess files on a Windows Server since the files are easily password protected if they require that much protection and are not even needed at all therefore the Hosting provider disables the ability to use them. It's much harder to crack into a Windows Server than an apache server :P

On the more serious side of things it is actually in the best interest to take into consideration of those who are unable to use those type of files that contain wild characters such as files starting with them or containing the wild characters. It's actually easier to type an underscore than it is to use shift and then a wild character above the number key and makes it easier on those who are not able to use those characters. ;)