views:

24

answers:

2

I moved a website over to a sub folder and I added a htaccess file to the root of the site. For some reason it is not redirecting to the subfolder. below is my code

Options +FollowSymLinks


#
#  mod_rewrite in use

RewriteEngine on

RewriteBase /public_html/corp/

i also tried

Options +FollowSymLinks


#
#  mod_rewrite in use

RewriteEngine on

RewriteBase /corp/

The site is actually in a folder called /corp/

+1  A: 

RewriteBase only specifies the base for every RewriteRule. If you don't have a RewriteRule, there won't be a rewrite.

WoLpH
+1  A: 
 DirectoryIndex /corp/index.php

or

Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteEngine On 

RewriteCond %{HTTP_HOST} ^(www.)?domain.com$
RewriteRule ^(/)?$ corp [L,R=301]

Are other alternative methods as well.

Jervis