Set up Mobile Redirect on HostGator

  • Knowledge Base
  • Mobile Website Builder
  • Set up Mobile Redirect on HostGator
  • Duda Support > Mobile Website Builder > Going Live



1.  Login to your cPanel link (HostGator usually emails you this after purchase).
2.  In the cPanel, scroll down to the Files section.
3.  Click on "File Manager."
4.  If prompted, select to edit the "Web Root" folder.
5.  Find the index.html or index.php file of your website. Highlight that file.
6.  Click on Code Editor at the top. A new window will appear.
7.  Find the tag and click directly after it then hit return to create a new line.
8.  Copy and paste the redirect code on the new line you've created. 
9.  Click Save Changes, make sure to wait for the green conformation then browse your site on your phone.

Exmaple Script:

<script src="" type="text/javascript"></script>
<script type="text/javascript">Mobile_redirect("");</script>


Note: You will need to setup this redirect on all pages which you want to make mobile friendly.


Priority Phone Support

English phone support is available 18 hours a day,
Monday through Friday, 3am to 9pm (EST).

United States +1 866-776-1550 3am to 9pm (Eastern)
United Kingdom +44 (0)800-011-9071 8am to 2am (London)
France +33 (0)9-75-18-84-74 9am to 3am (Paris)
Israel +972 (0)3-720-8922 10am to 4am (Jerusalem)
Australia +61 (0)2-8880-9166 7pm to 1pm (Sydney)
To schedule a call in French, Portuguese, Hebrew or Russian, please email us at

Please Log in as a DudaPro

Priority Phone Support is available exclusively to DudaPros. Log in to your DudaPro account now to see our international support numbers.

Log In
Not a DudaPro? Start a free trial now!