Answer the question
In order to leave comments, you need to log in
How to implement the transition between the mobile and the main version of the site?
The question is how to implement the transition from the mobile version of the site to the full version and vice versa.
Organize proper redirects, i.e.
when you come from a mobile device via the link of the full version of the page -> redirect to the mobile page.
when you come from a PC using the link of the mobile version of the page -> redirect to the full page.
also to work internal transitions on the site i.e. for example, we are on a mobile device and on the mobile page in its content there is a link to the page of the full version of the site, when clicking on the link we must get to the mobile version of the page.
And also that there would be no breakage when clicking back.
Is it possible to do this only on the server side or do you need javascript to determine the device,
Answer the question
In order to leave comments, you need to log in
As far as I understand the situation, this is done using javascript, and sometimes it is not needed unless you redirect everyone and everywhere. You can redirect from the main version to the mobile one, but why redirect the PC back, he either went there on purpose, or it's not a PC, but a phone. In any case, there will be a link to the opposite version. Therefore, you can do without letting phones into the full version. My opinion.
I think I understand what you mean, although you explain it in a strange way (most likely you grabbed the knowledge of how to eat in fast food - you were full, but you are not able to digest it).
the simplest feature is porting the site to devices. Depending on the complexity of the site, especially on the design, the deadlines depend. On average for a week it is possible to keep within "turnkey".
did this as part of the project, (this is not advertising) with comrades eski.mobi
I solved this problem 5 years ago. Here is my MobiCot - PHP Mobile Content Management Framework www.cotonti.mobi But the common url problem seems to be the simplest one.
And so we look at my article www.cotonti.mobi/page.php?al=model_style_css Model. Model style. CSS - Mobicot. Model. style models. CSS.
Another problem that has not been practically solved at all is third-party links. This is when you gave a link, and went through it ... from a mobile phone. Basically, sites either fall apart or a computer version comes out.
My method gave Google indexing for both desktop and mobile versions.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question