Traffic Redirection

Zyxware default image1
| 4 min read
We had an issue pointed out by one of our Drupal client that traffic from specific page to be redirected to another URL. In Drupal redirecting trafic from specific page on specific domains can be handle either by including a Drupal hook_init function or setting the .htaccess. Function hook_init runs at beginning of page request but it loads all Drupal modules and database for every page which results in performance issues. On the other hand .htaccess files are read on every page request and the effect to the changes in the .htaccess files is quick.