OptionCart Catalog

 

HACKER SAFE certified sites prevent over 99.9% of hacker crime.
Home Features Requirements Purchase Showcase Resellers Resources Help

HTACCESS MODIFICATIONS

Note: Some web hosts will not allow you to add htaccess files manually. Always check to see if the option to add password protection or add MIME types is available through your web host's control panel first. Otherwise, if your host does allow htaccess mods, use the following fixes:

Htaccess files are just text files that have the name .htaccess (without the .txt extension). You may not be able to view these files without using the file manager that comes with your web host's control panel or setting your FTP program to view hidden files.

Adding Permissions

To password protect your secure directory, create an .htaccess file and include the following lines:

AuthType Basic
AuthName "Protected"
require valid-user

Then load that file into the secure directory and the file will be protected. You won't be able to log into that file unless you set a user/password, but that shouldn't be necessary with this directory, because you will never need to access it from the browser.

Adding a MIME Type

If your web host has a MIME Type administration area, you can use this area to parse your PHP pages as .htm or .html. Use the following settings:

MIME Type: application/x-httpd-php
Extension(s): .php .htm .html

If your host does not have a MIME Type administration area, and you are allowed to modify your .htaccess file, create an .htaccess file as described above, putting it into the main directory and add the following line to the file. Or, if the file already exists, just add this line:

AddType application/x-httpd-php .php .htm .html

Privacy Policy: We respect your privacy. We will never give your email to third party companies nor use it for sales
purposes. Emails are used only for support purposes or to relay information to you about your OptionCart systems.