web analytics

Redirect

Redirecting a domain to a subfolder using .htaccess.

Tags: .htaccessdomainmod_rewriteRedirectsubdomain

Published on : July 29, 2009 by

Redirecting a domain to a subfolder using .htaccess.

To redirect domain to a subfolder you can create  a new .htaccess file in the document root of the domain. Then Edit .htaccess file and include the following entries: RewriteEngine On Options +FollowSymlinks RewriteBase / RewriteCond %{HTTP_HOST} www.domainname [OR] RewriteCond %{HTTP_HOST} domainname RewriteCond %{REQUEST_URI} !subfolder/ RewriteRule ^(.*)$ subfolder/$1 [L]

Continue Reading...


Let's Connect

Get new updates

Categories

$0.000 items