Skip to main content
Content Management Systems

Multi-site compatible apache rewrite rules

When using multi-site configurations in Drupal 4.7, and you want to use URL rewriting in .htaccess to force 'www.' or non-'www.' subdomain access, the rewrite rules used in the standard .htaccess file may be problematic.


# If you want the site to be accessed WITH the www. only, adapt and uncomment the following:
# RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC]
# RewriteRule .* http://www.example.com/ [L,R=301]

#
# If you want the site to be accessed only WITHOUT the www. , adapt and uncomment the following:

Alexa API module for Drupal

I'm working on an alexa API module that will allow your Drupal-based site to provide embedded Alexa site ranking information.

As of now, this module provides a number of useful features:

  • Generate img tag url for Alexa charts - embed Alexa charts in your site pages
  • Query Alexa toolbar data and return it in XML format
  • Caching of queried data

Useful Drupal Administrative SQL Queries

Quite often, it is necessary to perform batch operations on a drupal-based site - operations on multiple users, or multiple nodes, for example, and the administrative interfaces don't support the desired operation.

I've put together a list of my favorite queries on this page. I'll update these as time permits.

Syndicate content