Archive for the Apache Category

.htaccess Redirects for Root to WWW, Home Pages & Single Pages to Other Pages & More Examples
Posted on April 30, 2012 in .htaccess, Apache by Matt Jennings

Options All -Indexes

# Error Documents
ErrorDocument 404 /404.php
ErrorDocument 500 /500.php

# Turn on redirecting.
RewriteEngine on

# Redirect root to www host.
RewriteCond %{HTTP_HOST} ^[^.]+.[^.]+$
RewriteRule …

Read more

To Top ↑