I have a CV / Resume site, and when a user visits my site and the screen resolution is below 960, I redirect it to my mobile site through this JS
<script type="text/javascript">if (screen.width <= 960) {document.location = mobile.html";}</script>
My question is whether the user wants to visit a regular site and click on the link that javascript will launch and redirect the user to the mobile site. One way to solve this problem could be to duplicate a regular site, say index.html and index1.html, one with the above code and one without JS, but I think this solution is so Nubian. Any way to solve this problem? Before answering, please note that I do not have access to the .htaccess file.
My problem is that a user visits my site with a scree width below 960 by going to a mobile site, but if he wants to see the full site, click on the link and redirect to the full site regardless of screen width.
source share