Posts Under .htaccess Category
Force HTTP using htaccess
RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]
Error 500 php_value .htaccess
I noticed on some server setups I could not do the following inside a .htacess file: php_value upload_max_filesize 250M php_value post_max_size 250M I was getting an error 500 Internal Server Error with the above code in the .htaccess file. What to do to correct this is create a file called php.ini and save it in the same location as your .htaccess file and enter the following code instead: upload_max_filesize =…
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…