Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
Old 12-11-2007, 03:56 AM htaccess Commands
Junior Talker

Posts: 1
Name: spiros
Trades: 0
Hi all, i have some questions about .htaccess file

Can I use the following .htaccess file to secure my site... I was wondering is it right syntax?

may I use the contents into my .htaccess file as it is? or I must un-comment the sections?

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !^index.html [NC]
RewriteCond %{REQUEST_FILENAME} !^page2.html [NC]
RewriteCond %{REQUEST_FILENAME} !^page3.htm [NC]
RewriteCond %{REQUEST_FILENAME} !^page4.php [NC]
RewriteCond %{REQUEST_FILENAME} !^page5.shtml [NC]
RewriteRule ^index/(.*)$ /index?page=$1

#Options All -Indexes
IndexIgnore *

# protect myadmin.php
<files myadmin.php>
order deny,allow
deny from all
allow from my 126.123.12.5
</Files>

# Protect the .htaccess file
<files .htaccess>
order allow,deny
deny from all
</files>


# Protect config.inc.php
<files config.inc.php>
order allow,deny
deny from all
</files>



Thanks for any help.

Last edited by paldev77; 12-11-2007 at 04:02 AM..
paldev77 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to htaccess Commands
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.37134 seconds with 12 queries