Hi,

When using mobile tools with several domains, I found this configuration in Apache very useful. Maybe this can go into the documentation?

Inside your virtual host configuration:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^wap.example.com$ [NC]
RewriteRule ^(.*)$ http://m.example.com [R=301,L]
RewriteCond %{HTTP_HOST} ^mobile.example.com$ [NC]
RewriteRule ^(.*)$ http://m.example.com [R=301,L]

Thanks,

Best Regards

Per

Comments

devin carlson’s picture

Status: Active » Closed (fixed)

Please feel free to add anything useful information you've found to the documentation. Drupal documentation can be edited and improved by anyone!

devin carlson’s picture

Issue summary: View changes

Code