It is currently Fri Aug 29, 2008 6:12 am

FAQ: How to convert an htaccess.txt file into a .htaccess file

This is the archive off all FAQ related threads.

FAQ: How to convert an htaccess.txt file into a .htaccess file

Postby rliskey on Mon Nov 06, 2006 1:50 am

Introduction
When using PHP as an Apache module, you can change the configuration settings using directives in Apache configuration files (e.g. httpd.conf and .htaccess files). You will need "AllowOverride Options" or "AllowOverride All" privileges to do so. If you control your own Apache configuration, you can and should use httpd.conf. If you do not control your Apache configuration (such as on a shared server), you must use .htaccess files.

Directions
1. First look for the file, htaccess.txt in your root directory. It should have been installed during the Joomla! installation. (Note that this file name does not begin with a dot.) Open and carefully read htaccess.txt. It contains important suggestions on how to protect your site.

3. Make any adjustments to this file as appropriate for your site, and then save it in your site's home directory as, .htaccess (including the dot).

4. Test your site's front end and back end. If it produces errors, rename the file back to htaccess.txt, and troubleshoot your edits. If you are unable to get this working, you may have to leave the file named htaccess.txt.

5. Use phpinfo() to ensure that all configurations set as you intended. Note: Web-accessible files that include phpinfo() are potential security risks they offer attackers lots of useful information about your server. Always remove such files after use.


More Information

Back to Security FAQ Table of Contents

Search Keywords: security, htaccess, .htaccess, htaccess.txt
Last edited by rliskey on Sat Nov 18, 2006 7:49 pm, edited 1 time in total.
User avatar
rliskey
Joomla! Guru
Joomla! Guru
 
Posts: 747
Joined: Tue Jun 06, 2006 7:41 am
Location: Third planet from Sol

Return to FAQ Archive

Who is online

Users browsing this forum: No registered users and 0 guests