U
U
UksusoFF2014-01-28 12:21:47
htaccess
UksusoFF, 2014-01-28 12:21:47

How to set up MobileFrontend on a subdomain for MediaWiki?

Good afternoon!
Tell me what I'm doing wrong.
I want to configure the mobile version for MediaWiki 1.19.5 to be on the subdomain "pda."
Added to LocalSettings.php:

require_once("$IP/extensions/MobileFrontend/MobileFrontend.php");
$wgMFAutodetectMobileView = true;
$wgMobileUrlTemplate = 'pda.sitename.ru';

MW is installed in the "wiki" folder on the server.
Set up a short page address via .htaccess:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^wiki/(.+)$ wiki/index.php?title=$1 [PT,L,QSA]

If you add "?useformat=mobile" to the page address, it works.
But on the "pda.sitename.ru" domain, the usual full version is displayed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
trall, 2014-01-28
@sashablashenkov

From the MW documentation on short links - Do not create this folder. It shouldn't exist. In addition, the path must not be the root of the server, or an equivalent in a virtual directory.
Look this way

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question