Page 1 of 1

Clone Meteotemplate redirects on moble

Posted: Fri Nov 17, 2023 6:21 pm
by spd2612
I have set up a clone Meteotemplate which I renamed the Template folder and created a symlink to the the original sites MeteoTemplateLive
both sites are accessable and work fine Except when I try to access the Cloned site via Mobil device it redirects to the main site, It works fine on a desktop
I have looked at the index files and cant find anything that should cause this
anyone have any ideas here and yes I have cleared cache I must be missing something

original site https://hurricanepub.com
clone https://scpweather.com

how ever if I use the long url from a moble device it works https://scpweather.com/template1/indexMobile.php

Re: Clone Meteotemplate redirects on moble

Posted: Fri Nov 24, 2023 9:47 pm
by spd2612
the bottom mobile link on the main page also points to the hurricanepub page instead of scpweather
Untitled.jpg
Untitled.jpg (6.56 KiB) Viewed 35775 times

Re: Clone Meteotemplate redirects on moble

Posted: Sat Nov 25, 2023 1:58 pm
by lemimi
Good morning,
Wouldn't there be a redirection in the .htaccess file?
Michel

Re: Clone Meteotemplate redirects on moble

Posted: Sat Nov 25, 2023 2:19 pm
by spd2612
I do not use a htaccess file meteotemple redirects according to weather it is mobile or desktop
Going to scpweather from desktop works as it should its just mobil that takes it to the other domain install

Re: Clone Meteotemplate redirects on moble

Posted: Sat Nov 25, 2023 2:40 pm
by lemimi
Yes, I had tested your URL on my desktop and mobile and saw the redirect.
So maybe, just create a permanent link with the long URL via .htacess, for example:
RewriteEngine on
RewriteRule ^/?$ "https\:\/\/scpweather\.com\/template1\/indexMobile.php\/" [R=301,L]

Re: Clone Meteotemplate redirects on moble

Posted: Sat Nov 25, 2023 2:53 pm
by spd2612
I will try it

Re: Clone Meteotemplate redirects on moble

Posted: Sat Nov 25, 2023 3:33 pm
by spd2612
That did not work
I also changed the cookie name in the config file but no go there either
I dont no where the link at the bottom of the page comes from unless some of that comes from the DB becuse both URL"S use the same DB

Re: Clone Meteotemplate redirects on moble

Posted: Sat Nov 25, 2023 3:58 pm
by lemimi
Another idea, has the address in the Paths section of the Main Template Setting been changed?
Image

Re: Clone Meteotemplate redirects on moble

Posted: Sat Nov 25, 2023 5:09 pm
by spd2612
yes it has
All the other links work correctly and if I use https://scpweather.com/template1/indexMobile.php on a mobile device it goes there

Re: Clone Meteotemplate redirects on moble

Posted: Sat Nov 25, 2023 7:50 pm
by davidefa
In the main meteotemplate setup you can try setting the 'Mobile homepage' setting to Customizable.

mobile03.png
mobile03.png (144.65 KiB) Viewed 35734 times

Re: Clone Meteotemplate redirects on moble

Posted: Sat Nov 25, 2023 10:41 pm
by spd2612
davidefa wrote: Sat Nov 25, 2023 7:50 pm In the main meteotemplate setup you can try setting the 'Mobile homepage' setting to Customizable.


mobile03.png
davidefa You got it again
I am not sure why but changing to customizable worked Great thanks for all the advice
Does not seem to be that many people on here anymore

Re: Clone Meteotemplate redirects on moble

Posted: Sun Nov 26, 2023 8:40 am
by lemimi
Hello you two,
Davidefa has struck again... Bravo to him!
I just tested it, and it works perfectly.
Happy Sunday... Michel