• 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?


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:


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

Any help?

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:


header("Location: http://xfstop.com/misc/style?style_id=2");