default .htaccess

Status
Not open for further replies.

Fedlerner

Former Adm & Team Manager
Community Support
Messages
12,934
Reaction score
6
Points
38
When x10hosting gives you the host, it cames with a .htaccess

Code:
# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.easymoney.x10hosting.com
AuthUserFile /home/fedlerne/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/fedlerne/public_html/_vti_pvt/service.grp

That's what my .htaccess has...

I want to install a script that needs an .htaccess....
The script has this code in the .htaccess

Code:
Options All -Indexes
DirectoryIndex index.php index.htm index.html

# -------------------------------------------
# Start of NukeSentinel(tm) admin.php Auth
# -------------------------------------------
<Files .ftaccess>
  deny from all
</Files>

<Files .staccess>
  deny from all
</Files>

<Files admin.php>
   <Limit GET POST PUT>
      require valid-user
   </Limit>
   AuthName "Restricted"
   AuthType Basic
   AuthUserFile /path/to/your/.staccess
</Files>

# -------------------------------------------
# Start of NukeSentinel(tm) DENY FROM area
# -------------------------------------------

Is the .htaccess given by x10hosting necessary? If it is, can i put both codes in the .htaccess and it won't mess up ? Should i put the one of the NukeSentilen first?

Thanks,
fedlerner
 
Last edited:

Torch

New Member
Messages
634
Reaction score
0
Points
0
That default .htaccess is actually used to protect directories which are used by Front Page extensions. So, if you're not using them it's safe to remove it.
 
Last edited:

Fedlerner

Former Adm & Team Manager
Community Support
Messages
12,934
Reaction score
6
Points
38
hmmmmmmm..
I don't know what do you mean by frontpage extensions :p
I just use HTML, PHP & MySQL :p
 

Torch

New Member
Messages
634
Reaction score
0
Points
0
Simply put, if you're not using Front Page to make and publish your website, you don't need that 'default' .htaccess ;)
 

Fedlerner

Former Adm & Team Manager
Community Support
Messages
12,934
Reaction score
6
Points
38
Ok!
Thanks for your help Torch! :)
 

raptus

New Member
Messages
12
Reaction score
0
Points
0
You can add the 'new' info to the current .htaccess file as well. It doesn't matter the order. As long as you don't have 2 identical commands in there your fine.
 

zolteran

New Member
Messages
2
Reaction score
0
Points
0
Ok!
Thanks for your help Torch! :)

Hi did you get sentinal to work i keep trying but its as if it will not read the .staccess file every time i enter username and password if just brings the login box back again


thanks mike
 

The_Magistrate

New Member
Messages
1,118
Reaction score
0
Points
0
What with everyone resurrecting old threads these days? Geez! Over a year old, please close.
 
Status
Not open for further replies.
Top