| | |
htaccess to hide directory listing!
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Aug 2006
Posts: 10
Reputation:
Solved Threads: 0
Hello guys,
I and my project team at varsity finished up a website with a database back end. We developed it on a Windows system but now deploying to a Unix server. We used the Yellow duck framework. We've managed to work out compatibility issues as Unix is very sensitive (which is good in my view :-)).
There's one problem we don't know how to solve yet. Students can view our directory listings on the web and can also see the code for our template files but not the php ones, and we've spoken to the web admin and he said we should use .htaccess and this will be solved. I have done research but can't come around how to do this. Unfortunately am not Unix savvy yet but will get there.
Please any help will be appreciated.
Many thanks in advance.
Ike185.
I and my project team at varsity finished up a website with a database back end. We developed it on a Windows system but now deploying to a Unix server. We used the Yellow duck framework. We've managed to work out compatibility issues as Unix is very sensitive (which is good in my view :-)).
There's one problem we don't know how to solve yet. Students can view our directory listings on the web and can also see the code for our template files but not the php ones, and we've spoken to the web admin and he said we should use .htaccess and this will be solved. I have done research but can't come around how to do this. Unfortunately am not Unix savvy yet but will get there.
Please any help will be appreciated.
Many thanks in advance.
Ike185.
A quick web search will bring up the answer you are looking for, the option is called
Further reading:
http://www.clockwatchers.com/htaccess_dir.html
Indexes in the Options within the htaccess file add Options -Indexes (if you already have some Options listed, add the -Indexes to the end.Further reading:
http://www.clockwatchers.com/htaccess_dir.html
![]() |
Similar Threads
- Open In New Window Php (PHP)
- Redirecting a Directory or page... (Linux Servers and Apache)
Other Threads in the PHP Forum
- Previous Thread: dropdown list need help
- Next Thread: submit and isset
| Thread Tools | Search this Thread |
301 apache api array autosuggest beneath broadband broken button cakephp class cms code compression countingeverycharactersfromastring crack cron curl data database date decode dropdownlist dynamic echo email eregi error execution fcc file folder form freelancing function functions href htaccess html httppost if...loop image include incode integration ip javascript joomla key library limit link login match md5 menu method mod_rewrite multiple mysql mysql_real_escape_string oop paypal pdf php phpvotingscript protocol query random recursiveloop script search searchbox server session sessions sms smtp soap source space sql strip_tags support! survey system table template tutorial upload url variable virus volume votedown web website window.onbeforeunload=closeme; youtube zend





