Quick question. Why is .htaccess not supported by many servers? Really wondered why not all allow the file to be created.
Thanks.
Quick question. Why is .htaccess not supported by many servers? Really wondered why not all allow the file to be created.
Thanks.
You should be able to create a .htaccess file.
Is the file hidden? Perhaps there already is one.
.htaccess means = file is hidden ( due to . )
htaccess is the config file for web servers running Apache
Most Apache servers do allow it. If you are using cPanel, make sure that you are able to see files that start with a (.) - if not use FTP.
█ WiredStorm Hosting Solutions
█ Lightning Fast Shared and Reseller Hosting
█ cPanel with Softaculous and 24/7 Email (Ticket) Support
Biodegradable Sunscreen - Unblock Facebook
It's supported on most hosts except for those who use Windows. If you're talking about PHP flags in a .htaccess it is because the host has suPHP on at which there is a workaround for that.
Credits to Iwhic for this nifty tutorial (who I think still is around)The work around for this is to use your php.in file.. here is an example
running suPHP you can no longer use the .htacess to change any php
All the php_flags in your .htaccess will have to be moved to php.ini, which you will have to create in your public_html directory.
Example:
.htaccess » php_flag register_globals off
php.ini » register_globals = Off
The file php.ini will handle all the extra settings you need to set in php.
So, basically you will have to move every command on .htaccess that starts with php_flag.
This is because php is no longer running as an apache module and apache will not handle those directives any longer.
Creating a php.ini file to manipulate the php settings will solve this issue.
You will need to also add this to your .htaccess file to direct it to the php.ini file.
suPHP_ConfigPath /home/username/public_html
►Webmaster Forums
►Host Mist | Shared | Reseller | VPS | Dedicated
►Arcade Master - Rule the arcade!
Bookmarks