cancel
Showing results for 
Search instead for 
Did you mean: 

.htaccess code ?

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

.htaccess code ?

I have two folders on my cgi server, each with a cms made simple website in. I am using the following .htaccess rewrite rule to direct my two urls to their folder.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.website1.co.uk$ [nc]
RewriteCond %{REQUEST_URI} !^/website1/*
RewriteRule (.*) /website1/$1
RewriteBase /website1/
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]

RewriteCond %{HTTP_HOST} ^www.website2.co.uk$ [nc]
RewriteCond %{REQUEST_URI} !^/website2/*
RewriteRule (.*) /website2/$1
RewriteBase /website2/
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
You can view the two websites here...
www.rapidreality.co.uk and www.designrealitygraphics.co.uk
As you will see the rapidreality site loads in but the links don't work and the designrealitygraphics loads in but the images don't appear.
Jane Huh
1 REPLY 1
Highlighted
Grafter
Posts: 748
Registered: ‎19-08-2007

Re: .htaccess code ?

I've noticed that the rapidreality site has all their links dealing with the /product/ subdirectory, but when you use any of the available links, the navigation then alters to linking to the /graphic/ subdirectory.
What exactly is it you want to occur with the site? It's harder to understand the workings of it all since your CSS is generated via a PHP script.
Or am I missing the entire point of the thread? Tongue