cancel
Showing results for 
Search instead for 
Did you mean: 

ccgi domain pointing to subfolder: .htaccess debug

mauricebis
Newbie
Posts: 2
Registered: ‎03-06-2010

ccgi domain pointing to subfolder: .htaccess debug

Hi,
I got plus.net to make my domain name example.com to point to the root of the ccgi server. Now, I want the domain to point to a subfolder. I wrote a .htaccess file listed here after where redappleworkerscoop.com stand for example.com and redapple for the subfolder.  I #commented most lines to debug the basics that is getting the page http://redappleworkerscoop.com/redapple/index.php when I key in http://redappleworkerscoop.com in the browser. It doesn't work, I get a 403 error. What's wrong in my file? or is there something I should do to get it working? Thanks.
-----------------------------------------------------------------
RewriteEngine on
#Options +FollowSymLinks
#Redirect redappleworkerscoop
#redirect the domain name alone onto index.php
RewriteCond %{HTTP_POST} ^redappleworkerscoop.com/?$ [NC]
RewriteCond %{REQUEST_URI} ^/?$
RewriteRule /?.* /redapple/index.php [L,NE]
#redirect index.htm onto index.php
#RewriteCond %{HTTP_POST} ^redappleworkerscoop.com$ [NC]
#RewriteCond %{REQUEST_URI} /?index.htm
#RewriteRule /?.* /redapple/index.php [L,NE]
#if we aren't in the /redapple directory go there
#RewriteCond %{HTTP_HOST} ^redappleworkerscoop$ [NC]
#RewriteCond %{REQUEST_URI} !^/redapple/
#RewriteRule /?(.*) /redapple/$1 [L,NE]
-----------------------------------------------------------------
2 REPLIES 2
Gabe
Grafter
Posts: 767
Registered: ‎29-10-2008

Re: ccgi domain pointing to subfolder: .htaccess debug

Try this.
Gabe
mauricebis
Newbie
Posts: 2
Registered: ‎03-06-2010

Re: ccgi domain pointing to subfolder: .htaccess debug

Thanks Gabe, that did the job. Thanks again.