Let me get this other part right in my head.
If I have 50 htm pages in the root for the old website, INCLUDING the index.html file, I add to the root .htaccess file a pointer/code to each of them.
IF: you currently redirect all requests in the root directory to Serendipity,
AND: you want the old web pages in the root directory to be accessible without redirecting to Serendipity,
THEN: you'll have to put pointers to
each of the original files in your root directory's .htaccess.
I think that's what you wanted, so the short answer is "yes". Just verify before you do anything disappointing.
Lets try the BIGGIE! For if I can make this one work I can do the rest easy enough. Just the index.html file in the root.
Should be easy enough. I understand you just said: "I want to redirect everything in the root directory to Serendipity
except the root directory index.html, which should be accessed directly."
Using your provided .htaccess, here's what you'll need:
Code: Select all
RewriteEngine on
RewriteRule index.html index.html [L]
RewriteCond %{HTTP_HOST} ^rackjite\.com
RewriteRule ^(.*)$ http://rackjite.com/serendipity/$1 [R=permanent,L]
I've added one line to be processed
before the Serendipity redirect. It says, "for index.html, use index.html and consider this the Last rule you need to process."
If you wanted to move the index.html under a different directory, say, website/, you could do this instead:
Code: Select all
RewriteEngine on
RewriteRule index.html website/index.html
RewriteCond %{HTTP_HOST} ^rackjite\.com
RewriteRule ^(.*)$ http://rackjite.com/serendipity/$1 [R=permanent,L]
I think you can figure that one out yourself. ;-) And of course, if you want other pages, you basically just duplicate that line for each page.