cancel
Showing results for 
Search instead for 
Did you mean: 

Cgi link error

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

Cgi link error

I have a website in a folder on my cgi server, I need to direct a url to that folder. I have managed to do this by using the following .htaccess code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.rapidreality.co.uk$ [nc]
RewriteCond %{REQUEST_URI} !^/Product/
RewriteRule (.*) /Product/$1
It links to the index page but none of the links work. Can anyone help?
I am using an open source cms www.cmsmadesimple.org
You can find the site here www.rapidreality.co.uk
Thanks
2 REPLIES 2
Highlighted
Community Veteran
Posts: 3,789
Thanks: 1
Registered: ‎08-06-2007

Re: Cgi link error

Quote
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.rapidreality.co.uk$ [nc]
RewriteCond %{REQUEST_URI} !^/Product/*
RewriteRule (.*) /Product/$1


note the '*' on the end of the third line.
The * should get matched with the $1 on the 4th line.
Barry
Highlighted
Newbie
Posts: 7
Registered: ‎07-08-2007

Re: Cgi link error

Tried that but it still wont work!
Thanks for you help though.