cancel
Showing results for 
Search instead for 
Did you mean: 

Direct url to folder on cgi server???

Highlighted
Newbie
Posts: 7
Registered: ‎07-08-2007

Direct url to folder on cgi server???

hello,
I have two sites on the cgi server (in different folders) and need to direct a different url to each folder, anyone help?  Huh
4 REPLIES 4
Highlighted
Community Veteran
Posts: 14,469
Registered: ‎30-07-2007

Re: Direct url to folder on cgi server???

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?
Highlighted
Newbie
Posts: 7
Registered: ‎07-08-2007

Re: Direct url to folder on cgi server???

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?
Highlighted
Newbie
Posts: 7
Registered: ‎07-08-2007

Re: Direct url to folder on cgi server???

anyone help? Huh
Highlighted
Newbie
Posts: 7
Registered: ‎07-08-2007

Re: Direct url to folder on cgi server???

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!  Grin