Viewing redirecting to full-size site automatically from search results page?

redirecting to full-size site automatically from search results page?



User: spyboynola 11 years ago
I installed a findberry search box and like it better that googles'. Trouble is it provides both my mobile site and full site locations on results page, it is ok when a mobile user clicks on anything it is redirected properly, when a tablet or computer user clicks on mobile site result they get a very ugly huge mobile page. Can I use same redirect but change sizes (small to large instead of large to small) to automatically have tablet and computer users redirected to full size.
User: Jumbo T. 11 years ago
Copy the code from the page and change it and paste it in the Header Code Box :

<script>
<!--
function getParam(name){
name = name.replace(/[[]/,"[").replace(/[]]/,"]");
var regexS = "[?&]"+name+"=([^&#]*)";
var regex = new RegExp( regexS );
var results = regex.exec (window.location.href);
if (results == null)
return "";
else
return results[1];
}

function getQueryString() {
var query = window.location.search.substring(1);
var vars = query.split('?');

vars = vars.join("");

if (vars.length > 0) {
vars = "?" + vars;
} else {
vars = query.split('#!');
vars = vars.join("");
if (vars.length > 0) {
vars = "#!" + vars;
}

}
return vars;
}
var vars = getQueryString();
var fullsite = getParam("fullsite");
if (screen.width > 700 && fullsite!="true"){

window.location = "/some-page.html"+vars;
}
//-->
</script>

Last edit 11 years ago
User: spyboynola 11 years ago
I remember a long time ago I put in the redirect code - if big redirect to small - I can not find it now, I think it is automatic in the mobile settings. so now i place the above code in the head code area under google verification code? then that will auto for all pages in site.?
User: spyboynola 11 years ago
I remember a long time ago I put in the redirect code - if big redirect to small - I can not find it now, I think it is automatic in the mobile settings. so now i place the above code in the head code area under google verification code? then that will auto for all pages in site.?
User: spyboynola 11 years ago
don't know how i did these repostings sorry guys

Last edit 11 years ago
User: spyboynola 11 years ago
I remember a long time ago I put in the redirect code - if big redirect to small - I can not find it now, I think it is automatic in the mobile settings. so now i place the above code in the head code area under google verification code? then that will auto for all pages in site.?
User: Jumbo T. 11 years ago
You put the code in the Header Code Box of each mobile page you want to redirect to the corresponding desktop page.

Change the second bold line.
User: spyboynola 11 years ago
cool thanks
User: spyboynola 11 years ago
window.location = "/some-page.html"+vars;
change all of this to
http://spyboy4u.com/music-guide-daily-thursdayb-1.html
If that is the page I want to redirect to?
I am getting 404 page not found messages
or
http://music-guide-daily-thursdayb-1.html
which is the page url without spyboy4u.com in address url

Last edit 11 years ago
User: Jumbo T. 11 years ago
If you look at the source of your page, you'll see this line :

window.location = "/mobile-start-page.html"+vars;

Nowhere is a domainname or http:// visible.

So only use the pagename of your choice.

Last edit 11 years ago


Post Reply
You must login or signup to post.