How to redirect to a specific URL in Orchard CMS if browsing from a mobile device - asp.net-mvc-4

we have a Orchard site with a custom Module which has its separate _Layout/views (not rendering through Orchard's layout/theme).
we have two home pages: #1. www.xyz.com and #2. www.xyz.com/m. Where First one is the main site and the second one is the mobile site.
We want to redirect any traffic browsing the the main site (#1 url) to the mobile site (#2 url) if browsing from a mobile device or a tablet.
Where exactly in Orchard we have to make the changes to get the desired result?

Related

Keeping the same url parameters when user browse to other pages on the site

I'm interested in keeping the same url parameters the user already have, when he browses to other pages in my website.
For example if he enters through the link
mysite.com/?phone=9384839484, then any internal link on the site should redirect him to mysite.com/internalpage?phone=9384839484
The purpose is to track phone calls from each platform by showing them the same phone number everywhere on the site.

can i have 2 different link settings on Branch.io?

We already set up a branch project, with branch links and it works fine, is it possible to have 2 different behaviors on 2 links on branch?
i am talking about the behavior of the desktop click:
for example, i want that one link will open site A, and another will open site B (not under the same domain)
or to have one link redirect to a web page, and another to be redirected to the Branch-hosted SMS Landing Page
couldn't find the option on branch.io link settings
thanks.
Full disclosure, I work at Branch. You can definitely have each of your Branch links redirect to different sites.
For a Quick link, you need to update the Desktop redirect to the web address you want the link to redirect to.
For the Branch links you create in the Mobile SDK or using the HTTP API, you can add the $desktop_url:"http://www.example.com" parameter to the links.
To learn more about Deep links, you can refer to the documentation here.

How to stop mobile browser url redirect in prestashop

I am new to prestashop and I installed it on my local server then I uploaded the site to my online server and I tried to access the site from mobile browser, the browser redirected me to wrong url (localhost/prestashop). How to fix this or how to stop mobile browser detection and redirect to the main theme?
To not use a separate mobile theme you need to go to Back office > Preferences > Themes and under Mobile tab where it says Enable mobile theme select I'd like to disable it. That will display your main theme on all devices.
And it is a bit strange you had that redirect. So check Back office > Preferences > SEO & URLs under SET SHOP URL that it has the right URL. Or maybe regenerate the .htaccess by disabling and enabling Friendly URL option.

How to link multiple subdomains to one Google Page for rel="publisher"

For my website AglaSem i have 6-7 subdomains for different sections. I tried to link all of them with my google+ page as publisher. However i noticed that the only url which i added on gogole+ page profile as website works for rel="publisher" and not any other.
It shows the error:
This is not a verified publisher markup.
Is there any way i can link all subdomains to same google+ page as its not convent to make google+ pages for each one of them.

Publishing to facebook from different websites using one APP ID

I'm building a custom CMS for my clients and i've implemented the Facebook API for posting on Page Walls as admin. All works well but I do have one question. Let's say the FB app name is 'CMS FB APP'.
The CMS will reside on my clients' servers, is it possible to use 'CMS FB APP' for all of my clients? Or do I have to create an application for each CMS that I install on every different server?
In the app settings I have to set a Site URL and Site Domain but this is for each client different, I don't seem to find a solution for this problem.
If you are using authentication, you have to create a separate app for each url where your app will be hosted. You will receive an error when the user tries to log in with facebook. Facebook requires that your 'next' and 'cancel' urls in the authentication return urls be on the same domain as your app's Site Url. One solution would be to setup an app with a base url such as example.com and have each client on their own subdomain like client1.example.com, client2.example.com, etc. Short of that, you are stuck making separate apps.
It worked for me when using App domains options in facebook app settings.You can enter multiple domains as App domains
The redirect_uri you use in your code must have the same base domain as that specified in the App Domains.