Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
|
Drupal does its own URL rewriting, because all of its URLs are dynamic, and don't look very good in the browser. Drupal's rewriting makes the page-names more friendly to users and search engines both.
What you are referring to is domain name canonicalization, which is also a form of URL rewriting, and normally (as you have figured out) is done via the .htaccess file.
This is how I do it in .htaccess:
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
If that causes a conflict with Drupal's rewriting, I'm not sure what to do.
|