Htaccess files

From Lunarpages Web Hosting Wiki
Jump to: navigation, search

Do you support .htaccess?

Yes we do. Several of the features in Cpanel can also be set by editing the .htaccess file in a folder. If the .htaccess file does not exist in your /public_html/ or other folder check out the How to create a .htaccess file article.

You should remove any lines that begin with php_value and php_flag. You will need to move these files to a file named php.ini and upload php.ini into your public_html directory. Then, add the following line into the .htaccess file in your public_html:

suPHP_ConfigPath /home/username/public_html

Change username to your Lunarpages username. You will need to remove php_value and php_flag from ALL .htaccess files you may have. However, you only need to add the suPHP_ConfigPath line in the .htaccess file in your public_html directory only.

Please note that you will need to change the format of your php_value and php_flag lines into the php.ini format. (Refer to the FAQ entry on how your php.ini file should be formatted).

There is are excellent tutorials at:

You can also override some of the settings in php.ini by using settings in a .htaccess file.

Share |
Want to read this in another language?