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

Russ

Well-known member
#1
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?
 

Jake Bunce

XenForo moderator
Staff member
#2
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");

?>