# Mobile page redirect

**URL:** <https://forum.wixstudio.com/t/mobile-page-redirect/14143>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [November 14, 2018, 11:42pm UTC](https://forum.wixstudio.com/t/mobile-page-redirect/14143 "2018-11-14T23:42:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaptvservice](https://avatars.discourse-cdn.com/v4/letter/g/b5e925/32.png) [@gaptvservice](https://forum.wixstudio.com/u/gaptvservice)\
**Post date:** [November 14, 2018, 11:42pm UTC](https://forum.wixstudio.com/t/mobile-page-redirect/14143/1 "2018-11-14T23:42:01Z")

</div>

How do I redirect only my mobile version of the page to another website?

---

<div class="post-metadata">

**Author:** ![\_tal](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/_tal/32/669_2.png) [@\_tal](https://forum.wixstudio.com/u/_tal)\
**Post date:** [November 15, 2018, 2:10pm UTC](https://forum.wixstudio.com/t/mobile-page-redirect/14143/2 "2018-11-15T14:10:24Z")

</div>

Hi,  
You can check if a site visitor views the mobile site version using the [formFactor function](https://www.wix.com/code/reference/wix-window.html#formFactor) and use the [to( )](https://www.wix.com/code/reference/wix-location.html#to) function accordingly.

Best,  
Tal.

---

<div class="post-metadata">

**Author:** ![flexiroamar](https://avatars.discourse-cdn.com/v4/letter/f/b9e5f3/32.png) [@flexiroamar](https://forum.wixstudio.com/u/flexiroamar)\
**Post date:** [March 9, 2019, 2:58pm UTC](https://forum.wixstudio.com/t/mobile-page-redirect/14143/3 "2019-03-09T14:58:48Z")

</div>

Hello, I’m trying to redirect mobile users to a specific page when they open homepage of my website.  
I have inserted following code to my site:

```javascript
import wixWindow from 'wix-window';
import wixLocation from 'wix-location';
$w.onReady(funtion () {
      if(wixWindow.formFactor === "Mobile"){
            wixLocation.to('https://www.mywebsiteurl.com/mobile-page-name');
      }
});

```

Redirect works, but it works only after first loading the original homepage. I would like users to be directed to my mobile page immediately after they click on my site url without loading the homepage first.  
Thank you.
