Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
ccgi domain pointing to subfolder: .htaccess debug
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- ccgi domain pointing to subfolder: .htaccess debug
ccgi domain pointing to subfolder: .htaccess debug
03-06-2010 3:07 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
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]
-----------------------------------------------------------------
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]
-----------------------------------------------------------------
Message 1 of 3
(871 Views)
2 REPLIES 2
Re: ccgi domain pointing to subfolder: .htaccess debug
03-06-2010 6:23 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Try this.
Gabe
Gabe
Message 2 of 3
(314 Views)
Re: ccgi domain pointing to subfolder: .htaccess debug
04-06-2010 12:13 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Thanks Gabe, that did the job. Thanks again.
Message 3 of 3
(314 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- ccgi domain pointing to subfolder: .htaccess debug