Clone Meteotemplate redirects on moble
-
- 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
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
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
-
- 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
the bottom mobile link on the main page also points to the hurricanepub page instead of scpweather
- lemimi
- 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
Good morning,
Wouldn't there be a redirection in the .htaccess file?
Michel
Wouldn't there be a redirection in the .htaccess file?
Michel
-
- 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
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
Going to scpweather from desktop works as it should its just mobil that takes it to the other domain install
- lemimi
- 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
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]
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]
-
- 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
I will try it
-
- 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
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
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
- lemimi
- 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
Another idea, has the address in the Paths section of the Main Template Setting been changed?
-
- 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
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
All the other links work correctly and if I use https://scpweather.com/template1/indexMobile.php on a mobile device it goes there
-
- 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
In the main meteotemplate setup you can try setting the 'Mobile homepage' setting to Customizable.
-
- 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
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
- lemimi
- 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
Hello you two,
Davidefa has struck again... Bravo to him!
I just tested it, and it works perfectly.
Happy Sunday... Michel
Davidefa has struck again... Bravo to him!
I just tested it, and it works perfectly.
Happy Sunday... Michel