Adding a mobile site redirect
Posted: Tue Jul 29, 2014 9:13 am
Script URL:
Version of script: 1.7
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
Write your message below:
I am wondering whether there's a way to add the following code to just the View Guestbook page and not the Sign Guestbook page or any other pages of the guestbook.
<script src="http://static.dudamobile.com/DM_redirect.js" type="text/javascript"></script>
<script type="text/javascript">DM_redirect("http://m.example-domain.com");</script>
The script is a redirect to a mobile version of the website. The problem is that I'm having to get site visitors to use the desktop version of the guestbook to add comments as the mobile version doesn't work (doesn't show the CAPTCHA). However, I'd like visitors to be able to read the comments on the mobile version.
If I place the code in the overall_header file, as per the instructions, then an error occurs on the Sign Guestbook page because this particular page is not mobilized at DudaMobile. Obviously, things are getting stuck in a loop. Conversely, if I remove the redirect script, then people arriving on the 'View Guestbook' page from a search engine aren't seeing the mobile site until they click on another page link.
I'm not technical with php so I wonder if anyone could walk me through what I'd need to do to add the code to just the View Guestbook page.
Version of script: 1.7
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
Write your message below:
I am wondering whether there's a way to add the following code to just the View Guestbook page and not the Sign Guestbook page or any other pages of the guestbook.
<script src="http://static.dudamobile.com/DM_redirect.js" type="text/javascript"></script>
<script type="text/javascript">DM_redirect("http://m.example-domain.com");</script>
The script is a redirect to a mobile version of the website. The problem is that I'm having to get site visitors to use the desktop version of the guestbook to add comments as the mobile version doesn't work (doesn't show the CAPTCHA). However, I'd like visitors to be able to read the comments on the mobile version.
If I place the code in the overall_header file, as per the instructions, then an error occurs on the Sign Guestbook page because this particular page is not mobilized at DudaMobile. Obviously, things are getting stuck in a loop. Conversely, if I remove the redirect script, then people arriving on the 'View Guestbook' page from a search engine aren't seeing the mobile site until they click on another page link.
I'm not technical with php so I wonder if anyone could walk me through what I'd need to do to add the code to just the View Guestbook page.