Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
.htaccess code ?
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
- :
- .htaccess code ?
.htaccess code ?
16-08-2007 11:46 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
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
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

Message 1 of 2
(2,628 Views)
1 REPLY 1
Re: .htaccess code ?
21-08-2007 8:54 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
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?
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?

Message 2 of 2
(495 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