Mobile redirect in Drupal

by wuping
5 replies
Hey guys!
So I landed my first client (yeha).
The thing is, his website is using Drupal, and since I've got absolutely zero experience in Drupal I'm not sure how to set up a mobile redirect.

Basically I want to be able to redirect ALL the pages on the website (lets call it Dentist.com) to m.Dentist.com.
I would also like to be able to do individual redirects on each page.
Meaning, I would like to be able to redirect www.dentist.com/jawpain to www.m.dentist.com/jawpain.

I would be SO thankful if anyone could explain to me, how to do that.
Thank you so much in advance!
Mikkel
#drupal #mobile #redirect
  • Profile picture of the author 2WDHost
    Hi Mikkel.

    Probably the best way to do this is to use .htaccess redirect rules.
    Just google "How to redirect links for mobile using htaccess" and check the WordPress article. It should not be too different for Drupal.
    {{ DiscussionBoard.errors[5267803].message }}
  • Profile picture of the author RobKonrad
    Or try to use a module like this one:

    Simple Mobile Redirect | drupal.org

    cheers,
    Rob
    Signature
    ================================================== ===
    This blog is awesome: http://www.robkonrad.com/blog. Read it.
    ================================================== ===
    {{ DiscussionBoard.errors[5269510].message }}
  • Profile picture of the author wuping
    @2WDHost I tried that right now and read the article. But to me it seems, that it just redirects to the "main" mobile website IE m.dentist.com and it's not able to redirect to seperate mobile pages?

    @RobKonrad Yeah, I've looked into these plug-ins too. Also found some tool called "mobile tools". I think that's probably the best solutions perhaps.

    Any other inputs are greatly appreciated!
    {{ DiscussionBoard.errors[5269893].message }}
    • Profile picture of the author wuping
      I tried installing Mobile Tools. But as far as I can see, it's only possible to redirect to the main page of the mobile site. I would like to be able to point each separate post to a specific mobile site.
      For example:
      Point a mobile user from www.dentist.com/jawpain to www.m.dentist.com/jawpain.
      Really hope you or some other guys can help!
      {{ DiscussionBoard.errors[5285701].message }}
  • Profile picture of the author tweakr
    I think mobile tools would be your best option for this. It does redirect the whole website to the mobile site (each post/page) just like you want.
    I'm not sure which version of drupal you are using, I used it with 6 and it was relatively easy to setup and get going (just specify what you want it to do on the settings page). Looks like the plugin for 7 is still in development, if you're using this that might be the problem for now.
    {{ DiscussionBoard.errors[5300625].message }}

Trending Topics