See the comments in the .htaccess distributed with the core.
# Various rewrite rules.
<IfModule mod_rewrite.c>
RewriteEngine on
# If your site can be accessed both with and without the 'www.' prefix, you
# can use one of the following settings to redirect users to your preferred
# URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:
#
# To redirect all users to access the site WITH the 'www.' prefix,
# adapt and uncomment the following:
# RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
#
# To redirect all users to access the site WITHOUT the 'www.' prefix,
# uncomment and adapt the following:
# RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
# Modify the RewriteBase if you are using Drupal in a subdirectory or in a
# VirtualDocumentRoot and the rewrite rules are not working properly.
# modify the following line:
# RewriteBase /drupal
#
# uncomment the following line:
# RewriteBase /
# Rewrite URLs of the form 'x' to the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</IfModule>
On Fri, Jul 22, 2011 at 10:17 AM, Shai Gluskin
<shai@content2zero.com> wrote:
Lynn,
Are you on a Linux server? I think you are talking about using a mod_rewrite solution which, I think, only works on Linux.
mod_rewrite is incredibly powerful and fussy. I wouldn't risk advising you on the actual script.
I actually think this kind of question might best be handled by the support team at your server company. I'm not saying you shouldn't ask here... but if you don't get a response that helps, that is another route to go.
Shai
--
[ Drupal support list | http://lists.drupal.org/ ]