Mod rewrite

From Hostek.com Wiki
Revision as of 05:27, 21 December 2012 by Carlb (Talk | contribs) (Created page with "==General Information== Mod rewrite is available on our Linux servers and can be used to rewrite or redirect your site to a particular URL. ==Redirecting to a Sub Folder== <p...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

General Information

Mod rewrite is available on our Linux servers and can be used to rewrite or redirect your site to a particular URL.

Redirecting to a Sub Folder

RewriteEngine on
RewriteCond %{HTTP_HOST} ^example\.com$
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
RewriteRule ^$ testdirectory [L]