Posts Under Apache Category
Restrict PHPMyAdmin to IP Address
Would you like to restrict PHPMyAdmin from being accessible to the whole world? Firstly you need to SSH into your box if you are not on the local machine where PHPMyAdmin is installed along with Apache. cd /etc/phpmyadmin/ vi apache.conf You will need to look for the following text “<Directory /usr/share/phpmyadmin>” and add in the below code: Remember that you need to press “i” in order to start editting text…
Case Insensitivity with .htaccess files
If you have an .htaccess file to control the flow of URI’s on your site you may want to look at adding a nice little “case insensitive” feature to each line/item. So an example of a line of .htaccess without any case insensitive bells and whistles looks like this: RewriteRule ^AndrewOdendaal$ index.php?go=2964 We add our Case Insensitive feature by just adding a [NC] to the end of the line, like…
htaccess file and error 500 internal server error
I have a question for anyone that can answer it: I create an .htaccess file in the root of a subdomain, but if I enter either of these two lines I get an erro 500 Internal Server Error: php_flag magic_quotes_gpc off php_flag register_globals off Any suggestions anyone?
Error 406?
So you received an error 406 while trying to upload a file and you have no idea to fix it! Create a “.htaccess” file in the root of your local website and add the following into it: <IfModule mod_security.c> SecFilterEngine Off SecFilterScanPOST Off </IfModule>
htaccess ErrorDocument
Create a file called .htaccess in the root of your public_html/htdocs of your domain. Inside add the following text: Options +FollowSymLinks AddDefaultCharset UTF-8 RewriteEngine on Options +FollowSymLinks AddDefaultCharset UTF-8 RewriteEngine on ErrorDocument 404 /index.php ErrorDocument 301 /index.php With the index.php files being the pages that get redirected to.