Wednesday , 26 July 2017
Home » .htaccess

.htaccess

Password Protection Pages with .htaccess & .htpasswd

htaccess-tricks-tips-rules

I was working with .htaccess since a long time but I used .htaccess with .htpasswd for the first time in my 5 years of development. I did not came across any requirement like this before so never used before. Recently I need to implement password protected pages for one of my client. So I searched for it and came to know that we can do it using .htaccess and .htpasswd. Read More »

[.htaccess] 301 Redirect Subdomain to Main Domain

htaccess-tricks-tips-rules

I have a WordPress multisites and I was using sub domains for each site. Now I decided to combine all subdomain to main domain. For that, I need to write 301 redirect subdomain to main domain in order to keep the SEO benifits and avoid broken links. Its simple to redirect sub domain to domain pages. Look at below rules. Read More »

Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration

php-developer-programmer-freelancer

I have worked on many PHP projects and clients are happy with work as well. Suddenly yesterday I got an email from my client about the issue. He was a little angry and saying that why it stops showing Google Map on my contact us page. It was showing below error message. Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled... Read More »

[PHP] Runtime Change PHP Version using .htaccess

htaccess-tricks-tips-rules

If you are PHP Developer than you might aware with php versions and theirs functions. If your server have php4 and php5 versions than php4 is the default version. In this case, you are not able to access php5 functions which throws an error while you compare it with local server and live server. Read More »

[.htaccess] .htaccess invisible in FireFTP | How to make it Visible

htaccess-tricks-tips-rules

You may use FireFTP as the client server ftp program to transfer file to your hosting server. If you are facing problem with .htaccess file in FireFTP and you are not able to see it in FireFTP in the directory where .htaccess file is, you can simple follow below steps. How to make .htaccess visible in FireFTP, .htaccess is invisible in FireFTP. Solution is here. Read More »

[.htaccess] .htaccess invisible in Filezilla | How to make it Visible

htaccess-tricks-tips-rules

You may use Filezilla as the client server ftp program to transfer file to your hosting server. If you are facing problem with .htaccess file in Filezilla and you are not able to see it in Filezilla in the directory where .htaccess file is, you can simple follow below steps. How to make .htaccess visible in Filezilla, .htaccess is invisible in Filezilla. Solution is here. Read More »

[.htaccess] .htaccess invisible in CuteFTP | How to make it Visible

htaccess-tricks-tips-rules

You may use CuteFTP as the client server ftp program to transfer file to your hosting server. If you are facing problem with .htaccess file and you are not able to see it in CuteFTP in the directory where .htaccess file is than you can simple follow below steps. How to make .htaccess visible in CuteFTP, .htaccess is invisible in CuteFTP. Solution is here. Read More »

[.htaccess] Upload Large file in PHP | Increase Upload Limit

htaccess-tricks-tips-rules

Many developers are facing problem with uploading large file. Default upload limit of PHP is 2MB and it is defined in php.ini file. Some of the developers are aware with this configurations and they can increase the upload limit by editing few line of code in php.ini file. The problem comes when they upload their work on hosting server. Because you are not able to edit php.ini file on your hosting. Solution for this is to increase max limit by .htaccess. If you are looking to increase max file upload limit or want to upload big file or large file than just copy below code and paste it into .htaccess file. Read More »