the security of your Joomla directory with htaccess
We may often have problems when creating a new folder in Joomla. we make sure the file "index.html" function as the cover of the directory, so that the files in the directory that we have not seen. the file "index.html" is very important as the cover slit security joomla website that we wake up. But now there is a more simple way so that we do not create confusion the file "index.html" new every time we make a directory / folder new.
To do this is to create the file. "Htaccess" in the directory you want to amankan. this file to work to sub-sub directory. So we do not need to create the file. "Htaccess" in the sub directory.
I create a file "htaccess.txt" using notepad with the contents as follows:
Order allow, deny
Options-Indexes
Options + FollowSymLinks
ErrorDocument 404 / index.php
DirectoryIndex index.php
RewriteEngine on
RewriteCond% (REQUEST_FILENAME)!-F
RewriteCond% (REQUEST_FILENAME)!-D
RewriteRule ^(.*)$ index.php / $ 1 [L]
After you save the file "htaccess.txt" and open the Command Prompt. Use the
ren htaccess.txt. htaccess
to change the file "htaccess.txt" to ". htaccess".
Once finished, upload the file. "Htaccess" to the directory you want. After that you try to access the directory. See the results!
I suggest you upload a file. "Htaccess" on the public directory (eg public_html).
If for example you already have a file. "Htaccess" default Joomla add your script just above the file.
We may often have problems when creating a new folder in Joomla. we make sure the file "index.html" function as the cover of the directory, so that the files in the directory that we have not seen. the file "index.html" is very important as the cover slit security joomla website that we wake up. But now there is a more simple way so that we do not create confusion the file "index.html" new every time we make a directory / folder new.
To do this is to create the file. "Htaccess" in the directory you want to amankan. this file to work to sub-sub directory. So we do not need to create the file. "Htaccess" in the sub directory.
I create a file "htaccess.txt" using notepad with the contents as follows:
Order allow, deny
Options-Indexes
Options + FollowSymLinks
ErrorDocument 404 / index.php
DirectoryIndex index.php
RewriteEngine on
RewriteCond% (REQUEST_FILENAME)!-F
RewriteCond% (REQUEST_FILENAME)!-D
RewriteRule ^(.*)$ index.php / $ 1 [L]
After you save the file "htaccess.txt" and open the Command Prompt. Use the
ren htaccess.txt. htaccess
to change the file "htaccess.txt" to ". htaccess".
Once finished, upload the file. "Htaccess" to the directory you want. After that you try to access the directory. See the results!
I suggest you upload a file. "Htaccess" on the public directory (eg public_html).
If for example you already have a file. "Htaccess" default Joomla add your script just above the file.