Com convertir un arxiu htaccess.txt en un .htaccess?
From Joomla! Documentation
Introducció
Quan s'utilitza PHP com un mòdul d'Apache, pot canviar les opcions de configuració utilitzant directives en arxius de configuració d'Apache (p. Ex. Httpd.conf i .htaccess). necessitarà els privilegis "AllowOverride Options" o "AllowOverride All" per poder fer-ho. Si controla la seva pròpia configuració d'Apache, pot, i hauria de fer servir httpd.conf. Si no controla la configuració d'Apache (com en un allotjament compartit), de fer servir el fitxer .htaccess.
Direccions
- First look for the file, htaccess.txt in your root directory using FTP to connect to your server. The file 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.
- 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). Make sure you uncheck the "Hide filenames that begin with a period" option within your FTP program.
- 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 as htaccess.txt.
- 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.