Tag Archives: web server

Simple Redirect Subdomain to a Directory 1

If you are running Apache for your web server, and mod_rewrite is installed (this is a pretty typicaly module on all installations) this is actually pretty easy.
RewriteEngine on
RewriteCond %{HTTP_HOST} ^subdomain\.yourdomain\.com
RewriteRule ^(.*)$ http://www\.yourdomain\.com/subdomain/$1 [L]

Add this code to your apache configuration file – the easiest location is in the .htaccess file in your root web directory. This [...]

Comprehensive .htaccess guide 0

The AskApache blog has a great comprehensive guide to .htaccess. A must read for anyone who does a lot of work with Apache.
http://www.askapache.com/htaccess/apache-htaccess.html

Microsoft Office 2007 New Formats and your Apache server 1

If you upload those new fancy-shmancy file formats to your web server – namely .docx, .pptx and .xlsx – and you are running Apache; chances are that your web server doesn’t know how to serve those files because they are unknown file formats. Your browser may try to download them as a .zip file (IE) [...]

Use PHP, GD and .htaccess to Watermark All Images in a Directory 10

The goal here is to watermark all images in a certain directory, except for thumbnails or other selection. You can either do this on each file prior to placing on your webserver – which is probably wise for CPU load issues – but let’s just say you want to do this for all files [...]