Viewing Mobile re-direct not working
Mobile re-direct not working
|
User: Julia W. 11 years ago
|
|
|
Hi I have two main sites and two mobile sites to reflect their content. They are all on different domain names. The sites all load correctly from their domain names from my MacBook and the mobile sites load correctly from their domain names on my mobile devices. However, the mobile re-directs from the main sites are not working from any of my mobile devices (htc, Samsung galaxy from any of their browsers). One of the sites re-directs to its 404 not found page. The other (which doesn't have a separate 404 page just defaults to home) does not load at all and flickers around in the browser bar. In this case the www part of the name disappears from the browser bar. I have attached a screen shot of the main site re-direct. I did wonder if I should be using a sub-domain instead for the mobile sites but am not sure how to do this as I have added a sub-domain in my services but it does not appear as an option for publishing. Should this be the sub-directory. Sorry if these are two separate issues but I wondered if they could be connected. |
|
Screenshot mobile re-direct.png Screen shot mobile re-direct |
|
|
User: Jumbo T. 11 years ago
|
|
|
Since you do not provide information, I had to wade thru all the pages on the website mentioned on the picture. I finally arrived here : http://www.weightloss-camp.co.uk/ Then I looked at the code and found this : window.location = "/http://www.paleo-holiday.com"; The / before http is the reason why it doesn't work. Besides that, I wonder why people only add the redirect code on the home page. On the rare occasion people search for info on a mobile device and find other pages without the redirect code, the purpose of a mobile site is defeated, since they only get to the mobile site when they go to the home page. |
|
|
User: Julia W. 11 years ago
|
|
|
Thank you for your response. Firstly, I had redirects for all the pages but took them out to see if that fixed the problem. But how can I tell there is the extra / without going thro all the code? I just put in the domain as you can see on the screen shot. |
|
|
User: Jumbo T. 11 years ago
|
|
|
Check what you typed in the external URL field. I did this : ![]() And this is in the code : window.location = "http://trotter.is-best.net"; On the other hand, perhaps it was bug, that has been repaired. You use EverWeb 1.3.1 (1220) I use EverWeb 1.4b9 (1244) |
|
|
User: Paul-RAGESW 11 years ago
|
|
|
Enter the URL with http:// and it should work.
------------------------------- Paul EverWeb Developer |
|
|
User: Julia W. 11 years ago
|
|
| Thanks both. Yes Paul, I actually took the http:// out for this site to see if it made a difference but it just redirects to the 404 not found page. The other one has the full address but just flickers - this is the one that Jumbo T had found that has the extra / but it definitely doesn't on the project window. I also tried it with /index.html on the end but no change. | |
|
User: Julia W. 11 years ago
|
|
|
Sorry - accidental duplicate
Last edit 11 years ago |
|
|
User: Julia W. 11 years ago
|
|
| Ok, after many tries and re-publishing sites several times have reset the mobile settings to empty and used Roddy's code http://everwebcodebox.com/mobile/design.html instead and now everything is working. | |
| Post Reply |
| You must login or signup to post. |

