U
U
usja2013-11-12 20:10:57
Zend Framework
usja, 2013-11-12 20:10:57

Routing using subdomains

There is a functioning site on ZF 1.12
There was a need to create a mobile version. To do this, I use the subdomain m.site.com

To define a module for m.site.com - it turned out without problems.
And here it is impossible to register further routings.

For the full version of the site, there is such a link: site.com/pages/info . The 'pages' module is used for it.
In the mobile version, m.site.com/pages/info , but the module must be 'mobilepages'.

But for the mobile version, the full version of the site is opened.
Who will tell you how to correctly write the rules for the module. Thanks

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question