Posts Tagged ‘.htaccess’

Redirecting a subdomain to script with .htaccess

Tuesday, July 14, 2009 23:50 No Comments

I recently had to work with .htaccess to redirect user to their homepage based on subdomain. The requirement was simple and is seen here and there and ofcourse everywhere now a days in different social networks. The requirement was redirecting http://username.domain.tld to http://domain.tld/user.php?u=username. This is just an example (Not similar to url I used). So [...]

This was posted under category: .htaccess, PHP, Tutorial Tags: , , , , , ,

Upload Large Files in PHP with .htaccess

Wednesday, April 1, 2009 5:21 No Comments

I regularly hear few of my friends expressing their agony they face when they try to upload large files with php using HTML Forms. I tell them about .htaccess files, and they really enjoy the solution.
Many hosting providers limit the file upload size from 2 MB to 8MB and it is really a [...]

This was posted under category: PHP, Tutorial Tags: , , ,