1-866-277-9958

HTTP

7 Ways to Scale the Learning Brick Wall of Drupal

After writing recently about the Brick Wall of Learning Drupal, I got a lot of responses from people frustrated with trying to learn Drupal. Clearly this a big issue. Some of the big challenges are discovering "best practices" and finding the "good modules." While there is no quick and easy answer to learning Drupal, there are 5 ways to find the information you are looking for.

  1. Websites


Get Drupal help when you need it most! Find hundreds of great tutorials. Track, rate, comment and more. Create Account

If you enjoy our content, please consider subscribing through RSS, so you can read our posts in your application of choice.

How To 301 Redirect Multiple Domains Into One Domain

Problem: 

If you need to do a 301 redirect between multiple domain names, and force all domains to direct to the "www", use the following code in your .htaccess file.

RewriteCond %{HTTP_Host} ^(www\.)?secondary-domain1\.com$ [NC]
RewriteRule ^(.*)$ http://www.maindomain.com/$1 [L,R=301]

RewriteCond %{HTTP_Host} ^(www\.)?secondary-domain2\.com$ [NC]
RewriteRule ^(.*)$ http://www.maindomain.com/$1 [L,R=301]

RewriteCond %{HTTP_Host} ^maindomain\.com$ [NC]
RewriteRule ^(.*)$ http://www.maindomain.com/$1 [L,R=301]

And that's how you would do a 301 redirect between multiple domain names, and force the "www" version of your main domain.  The code above is for a .htaccess file on an apache server.

Syndicate content
Syndicate content

©1999 - 2011 LevelTen Interactive - Dallas, TX