1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Appropiate way of a redirect?

Discussion in 'XenForo Questions and Support' started by Russ, Dec 9, 2010.

  1. Russ

    Russ Well-Known Member

    So... I'm working on the mobile style and some requested if users browsed to mydomain.com/m/ it could get the mobile style pulled up.

    My thought... doing a simple redirection off mydomain.com/m/ to:

    http://xfstop.com/misc/style?style_id=2

    2 being the mobile style, when I did this in cpanel it takes me an error page saying /m/ does not exist.

    Any help?
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    One option is to upload an index.php file to that directory. Use code like this in the file:

    Code:
    <?php
    
    header("Location: http://xfstop.com/misc/style?style_id=2");
    
    ?>
    
     
    Russ likes this.

Share This Page