serverside script in static page to call a wp theme? Or the other way around?
-
Hi there. I have a website which is static and not made in wordpress. It is a set of simple html pages which I like the look of. I have realised it cannot be viewed properly on mobile devices. My plan is to use some kind of mobile detection script written in PHP that operates server side rather than a client side script. That script will redirect mobile users to a responsive wordpress page. I dont want to use a javascript detection method running clientside since this will mistake browsers which run javascript blockers such as noscript, etc, with mobile devices that cannot run javascript. I have full access to the cgi-bin and can add scripts there
a few questions arise:
supposing I use script that can be generated here what exactly do I do with the script? I put that in the cgi-bin, but then in my webpage how do I make use of that?Is there a better method, perhaps doing it the other way around where the wordpress site is the root site and detects desktops and laptops and redirects those to the static pages?
- The topic ‘serverside script in static page to call a wp theme? Or the other way around?’ is closed to new replies.