Clone Meteotemplate redirects on moble

Post Reply
spd2612
Forecaster
Forecaster
Posts: 165
Joined: Thu Jan 23, 2020 4:00 pm
Location: Fort Myers
Station model: WS-5000/GW1100
Software: ECOWITT Plugin
Contact:

Clone Meteotemplate redirects on moble

Post by spd2612 » Fri Nov 17, 2023 6:21 pm

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
Image

Ambient Weather WS-5000
Ultrasonic Anemometer
Thermo-Hygrometer Sensor WH31E
Soil Moisture Sensor WH31SM
Lightning Detection WH31L

spd2612
Forecaster
Forecaster
Posts: 165
Joined: Thu Jan 23, 2020 4:00 pm
Location: Fort Myers
Station model: WS-5000/GW1100
Software: ECOWITT Plugin
Contact:

Re: Clone Meteotemplate redirects on moble

Post by spd2612 » Fri Nov 24, 2023 9:47 pm

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 377 times
Image

Ambient Weather WS-5000
Ultrasonic Anemometer
Thermo-Hygrometer Sensor WH31E
Soil Moisture Sensor WH31SM
Lightning Detection WH31L

User avatar
lemimi
Advisor
Advisor
Posts: 95
Joined: Wed Dec 12, 2018 3:31 pm
Location: France - Normandie
Station model: Brandson 304557
Contact:

Re: Clone Meteotemplate redirects on moble

Post by lemimi » Sat Nov 25, 2023 1:58 pm

Good morning,
Wouldn't there be a redirection in the .htaccess file?
Michel

spd2612
Forecaster
Forecaster
Posts: 165
Joined: Thu Jan 23, 2020 4:00 pm
Location: Fort Myers
Station model: WS-5000/GW1100
Software: ECOWITT Plugin
Contact:

Re: Clone Meteotemplate redirects on moble

Post by spd2612 » Sat Nov 25, 2023 2:19 pm

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
Image

Ambient Weather WS-5000
Ultrasonic Anemometer
Thermo-Hygrometer Sensor WH31E
Soil Moisture Sensor WH31SM
Lightning Detection WH31L

User avatar
lemimi
Advisor
Advisor
Posts: 95
Joined: Wed Dec 12, 2018 3:31 pm
Location: France - Normandie
Station model: Brandson 304557
Contact:

Re: Clone Meteotemplate redirects on moble

Post by lemimi » Sat Nov 25, 2023 2:40 pm

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]

spd2612
Forecaster
Forecaster
Posts: 165
Joined: Thu Jan 23, 2020 4:00 pm
Location: Fort Myers
Station model: WS-5000/GW1100
Software: ECOWITT Plugin
Contact:

Re: Clone Meteotemplate redirects on moble

Post by spd2612 » Sat Nov 25, 2023 2:53 pm

I will try it
Image

Ambient Weather WS-5000
Ultrasonic Anemometer
Thermo-Hygrometer Sensor WH31E
Soil Moisture Sensor WH31SM
Lightning Detection WH31L

spd2612
Forecaster
Forecaster
Posts: 165
Joined: Thu Jan 23, 2020 4:00 pm
Location: Fort Myers
Station model: WS-5000/GW1100
Software: ECOWITT Plugin
Contact:

Re: Clone Meteotemplate redirects on moble

Post by spd2612 » Sat Nov 25, 2023 3:33 pm

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
Image

Ambient Weather WS-5000
Ultrasonic Anemometer
Thermo-Hygrometer Sensor WH31E
Soil Moisture Sensor WH31SM
Lightning Detection WH31L

User avatar
lemimi
Advisor
Advisor
Posts: 95
Joined: Wed Dec 12, 2018 3:31 pm
Location: France - Normandie
Station model: Brandson 304557
Contact:

Re: Clone Meteotemplate redirects on moble

Post by lemimi » Sat Nov 25, 2023 3:58 pm

Another idea, has the address in the Paths section of the Main Template Setting been changed?
Image

spd2612
Forecaster
Forecaster
Posts: 165
Joined: Thu Jan 23, 2020 4:00 pm
Location: Fort Myers
Station model: WS-5000/GW1100
Software: ECOWITT Plugin
Contact:

Re: Clone Meteotemplate redirects on moble

Post by spd2612 » Sat Nov 25, 2023 5:09 pm

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
Image

Ambient Weather WS-5000
Ultrasonic Anemometer
Thermo-Hygrometer Sensor WH31E
Soil Moisture Sensor WH31SM
Lightning Detection WH31L

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Clone Meteotemplate redirects on moble

Post by davidefa » Sat Nov 25, 2023 7:50 pm

In the main meteotemplate setup you can try setting the 'Mobile homepage' setting to Customizable.

mobile03.png
mobile03.png (144.65 KiB) Viewed 336 times
Image

spd2612
Forecaster
Forecaster
Posts: 165
Joined: Thu Jan 23, 2020 4:00 pm
Location: Fort Myers
Station model: WS-5000/GW1100
Software: ECOWITT Plugin
Contact:

Re: Clone Meteotemplate redirects on moble

Post by spd2612 » Sat Nov 25, 2023 10:41 pm

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
Image

Ambient Weather WS-5000
Ultrasonic Anemometer
Thermo-Hygrometer Sensor WH31E
Soil Moisture Sensor WH31SM
Lightning Detection WH31L

User avatar
lemimi
Advisor
Advisor
Posts: 95
Joined: Wed Dec 12, 2018 3:31 pm
Location: France - Normandie
Station model: Brandson 304557
Contact:

Re: Clone Meteotemplate redirects on moble

Post by lemimi » Sun Nov 26, 2023 8:40 am

Hello you two,
Davidefa has struck again... Bravo to him!
I just tested it, and it works perfectly.
Happy Sunday... Michel

Post Reply