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

Categories

Your Cart

Cart is empty.

Subtotal
₹0.00
APPLY
0