Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Direct url to folder on cgi server???
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
- :
- Direct url to folder on cgi server???
Direct url to folder on cgi server???
07-08-2007 2:11 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
hello,
I have two sites on the cgi server (in different folders) and need to direct a different url to each folder, anyone help?
I have two sites on the cgi server (in different folders) and need to direct a different url to each folder, anyone help?

Message 1 of 5
(3,822 Views)
4 REPLIES 4
Re: Direct url to folder on cgi server???
07-08-2007 3:26 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I'm not sure I understand what you are trying to do. Can you explain in more detail with perhaps an example URL and we may be able to help.
Do the two sites have different domains associated with them or do you just access them as ccgi.username.plus.com/site1/... and ccgi.username.plus.com/site2/... ?
or do you mean if someone types in www.domain1.com you want it to go to the site1 directory and www.domain2.com to go to the site2 directory?
Do the two sites have different domains associated with them or do you just access them as ccgi.username.plus.com/site1/... and ccgi.username.plus.com/site2/... ?
or do you mean if someone types in www.domain1.com you want it to go to the site1 directory and www.domain2.com to go to the site2 directory?
Message 2 of 5
(1,159 Views)
Re: Direct url to folder on cgi server???
07-08-2007 3:55 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
sorry i didn't make myself clear!
When someone goes to www.rapidreality.co.uk I need to point the url to the folder called Product on the cgi server.
I have discovered the following .htaccess rule:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.rapidreality.co.uk$ [nc]
RewriteCond %{REQUEST_URI} !^/Product/
RewriteRule (.*) /Product/$1
This works BUT none of the links work? Does anyone know what I have done wrong?
When someone goes to www.rapidreality.co.uk I need to point the url to the folder called Product on the cgi server.
I have discovered the following .htaccess rule:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.rapidreality.co.uk$ [nc]
RewriteCond %{REQUEST_URI} !^/Product/
RewriteRule (.*) /Product/$1
This works BUT none of the links work? Does anyone know what I have done wrong?
Message 3 of 5
(1,159 Views)
Re: Direct url to folder on cgi server???
08-08-2007 2:37 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
anyone help?

Message 4 of 5
(1,159 Views)
Re: Direct url to folder on cgi server???
09-08-2007 6:16 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
ok i got it sorted!
RewriteEngine On
RewriteCond %{HTTP_HOST} ^myurl$ [nc]
RewriteCond %{REQUEST_URI} !^/myfolder/*
RewriteRule (.*) /myfolder/$1
RewriteBase /myfolder/
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
I used the above code!
RewriteEngine On
RewriteCond %{HTTP_HOST} ^myurl$ [nc]
RewriteCond %{REQUEST_URI} !^/myfolder/*
RewriteRule (.*) /myfolder/$1
RewriteBase /myfolder/
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
I used the above code!

Message 5 of 5
(1,159 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
- :
- Direct url to folder on cgi server???