Home » singles personals » How to Redirect Mobile Traffic to Your goMobi Website – Support Portal

How to Redirect Mobile Traffic to Your goMobi Website – Support Portal

How to Redirect Mobile Traffic to Your goMobi Website - Support Portal

goMobi will redirect your site traffic to the mobile subdomain of your main domain (m.example.com) whenever a mobile device is detected by default. This happens automatically when you setup your goMobi website.

However, there are times when this functionality may not work. When this occurs, it is possible that the functionality is cracked or has been intentionally liquidated. If either of these is the case, you can restore the redirect functionality in two ways.

Automatic Restore

  1. Log into your cPanel.
  2. Select the goMobi icon from the Software/Services section.
  3. Select the mobile website that is having redirect issues.
  4. Underneath the phone example of your mobile website, click the Finish button. This will automatically generate the .htaccess codes necessary to redirect your mobile website. The following screen will permit you to select the scripting language of your desktop website, and will generate the necessary code to ensure that visitors to your desktop website are decently redirected.
  5. From the dropdown menu for your site, select the correct language.
  6. Click Generate to get the correct code for your website.
  7. The generator will provide you with instructions on how to implement the code provided.

Manual Restore

  1. Log into your cPanel.
  2. Under the Files section, select File Manager.
  3. In the popup window, select the website you wish to modify from the dropdown box and click Go.
  4. locate your .htaccess file.
  5. Right click on the file and select Code Edit.
  6. If there are any directives already in the file, you will want to disable them by typing a “#” in front of them.
    • Alternatively, you can simply rename the .htaccess file and begin fresh with a blank .htaccess.
    • Copy and paste the code below into the .htaccess file to re-enable the default goMobi redirects.

    To ensure that this code works decently for your website, please substitute the four instances of [example.com] in the code below with your domain name. For your convenience these are marked in bold.

    Example Code

    Note: Some of the text below has been word-wrapped. For best results, copy and paste the entire block of code to ensure decent formatting.

    # This .htaccess file redirects mobile browsers and devices to an alternate destination

    # Ensure rewriting is on

    # Check for redirect param

    RewriteCond % !gomobi_prevent_redirect=true [OR]

    # Don’t redirect if its false

    # Exclude certain paths e.g. cpanel admin etc.

    # Exclude certain extensions e.g. pics, docs etc

    # Switch based on significant accept headers

    RewriteCond % “text/vnd.wap.wml|application/vnd.wap.xhtml+xml” [NC,OR]

    RewriteCond % “iphone|ipad|ipod|android|nokia|ios|opera m(ob|in)i|iemobile|symbian|samsung|sec-|htc|huawei|ericsson|sonyericsson|blackberry|motorola|sagem|kyocera|zte|kddi|docomo|j-phone|kwc|lenovo|lg|mot|softbank|nec|audiovox|alcatel|acute|sie-|sanyo|sendo|amoi|xda|bird|benq|palm|pantech|panasonic|fly|asus-|baiduispider|googlebot-mobile|nintendo|psp|dalvik|windows ce|foma|brew|webos|fennec|netfront|teleca|obigo|vodafone|up.browser|portalmmm” [NC]

    RewriteRule ^(.*)$ http://m.[example.com] [L,R=302]

    Related movie: Best Dating Sites 2017 – Top Dating Sites Reviews of 2017


    , ,

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    *
    *