Jump to content


Photo
- - - - -

URL Redirection to mobile Website


  • Please log in to reply
7 replies to this topic

#1 zerious

zerious

    Member

  • Members
  • 18 posts
  • Country: Country Flag

Posted 12 February 2013 - 08:52 PM

Hi,

 

I'm using the iBlog Pro Theme and want to redirect smartphone devices to a mobile website instead of the responsive design. I'm using the following code in the htaccess and have the problem that the redirection doesn't work. 

 

Please Login or Register to see this Hidden Content

 

Is there a possibility to deactivate the responsive design or give the htaccess redirect a higher priority than the responsive design?



#2 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 12 February 2013 - 09:09 PM

Try this:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC]
RewriteRule ^$ /mobile/ [L,R=302]
</IfModule>



#3 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 12 February 2013 - 09:33 PM

Hi,

 

This plugin might help:

Please Login or Register to see this Hidden Content



#4 zerious

zerious

    Member

  • Members
  • 18 posts
  • Country: Country Flag

Posted 14 February 2013 - 03:57 AM

Hi,

 

I've tried the htaccess rule yesterday but there is no effect on the redirect.

 

I also tried the plugin above and a few others. No redirection plugin seems to work with iBlog Pro. It looks like if the responsive layout will overrule all the redirection stuff.

 

Can you help me with that problem?



#5 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 14 February 2013 - 04:14 AM

Hi Zerious,

 

Simon is our senior developer and incredibly knowledgeable with .htaccess.  I'm unsure how he'd resolve this issue, but I'd recommend you consider hiring a pro for this from

Please Login or Register to see this Hidden Content

.

 

I will alert Simon to this topic.



#6 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 14 February 2013 - 01:38 PM

.htaccess and url redirection is handled by your server configuration.

 

If redirection is not working at all then you need to contact your host and tell them the apache module rewrite is either not installed or configure incorrectly.



#7 zerious

zerious

    Member

  • Members
  • 18 posts
  • Country: Country Flag

Posted 18 February 2013 - 03:48 AM

Hi,

 

htaccess is supported by the server, e.g. for permalinks it works without any problems. And I also had a mobile redirection plugin aktivated that works, but only for the homepage. For subpages it always ends with a redirection loop, that's why I want to have a solution with htaccess. The plugin Rob posted is not working in any way.



#8 Danny

Danny

    Is Awesome!

  • Moderators
  • 15702 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 18 February 2013 - 12:46 PM

If you disable PageLines Framework and enable Twenty Ten, Eleven or Twelve, does the same issue apply, where it works on your homepage but not other pages, can you confirm this please.