Skip to main content

Setting redirects that work on cell phones

Comments

7 comments

  • cPanelLauren
    Hi @vincentg There should be no difference in the behavior of redirects from a browser to a cell phone, what you may be encountering is caching?
    0
  • vincentg
    There should be but there is When you have an domain alias it doesn't redirect proper
    0
  • cPanelLauren
    Do you have a way to reproduce the behavior? Detailed replication steps/examples would be useful in this instance.
    0
  • vincentg
    Yes - this one example.tv example.net But we have problems with it Tried several ways to do it in .htaccess We will get it to work on a pc but not on a Cell phone. At current I left it as ErrorDocument 404 /404.php RewriteCond %{HTTPS} off RewriteCond %{HTTP:X-Forwarded-SSL} !on RewriteCond %{HTTP_HOST} ^example\.tv$ [OR] RewriteCond %{HTTP_HOST} ^www\.example\.tv$ RewriteRule ^(.*)$ "https\:\/\/example\.net\/$1" [R=301,L] RewriteCond %{HTTPS} off RewriteCond %{HTTP:X-Forwarded-SSL} !on RewriteCond %{HTTP_HOST} ^example\.net$ [OR] RewriteCond %{HTTP_HOST} ^www\.example\.net$ RewriteRule ^(.*)$ "https\:\/\/example\.net\/$1" [R=301,L]
    Had to add RewriteCond %{HTTPS} off RewriteCond %{HTTP:X-Forwarded-SSL} !on when redirect from alias
    Cpanel does not put it and if not there you get same ssl error as on phone
    0
  • Infopro
    I've removed your actual links and domain names from your post. I did check the original link in 2 different browsers on my cell phone first though. Here's what I get:
    0
  • vincentg
    I don't get that on original link on my phone but get it from alais which also does not change displayed url
    0
  • cPanelLauren
    Based on the rewrite rules you have in your .htaccess it looks like you're forcing SSL but you don't have an SSL certificate. My assumption is you've added an exception for your site in the browser but not on the mobile device which is why you're seeing different things. I've tried looking at it this morning and I get redirected on both the mobile and browser without an SSL warning.
    0

Please sign in to leave a comment.