Welcome, Guest
Username Password: Remember me

Mobile Site is not displaying
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Mobile Site is not displaying

Mobile Site is not displaying 13 years ago #6178

  • thejamjr
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
I have installed MobileJoomla and followed the tutorials, am I missing something? It still displays the site as the desktop site and not a mobile site. www.matco.net

Re: Mobile Site is not displaying 13 years ago #6180

  • xamire
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 1
You have no website active, currently. Not sure if you're having serious problems, or if you're just fixing your site.

Re: Mobile Site is not displaying 13 years ago #6182

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
Browser displays "Error 310 (net::ERR_TOO_MANY_REDIRECTS):". What redirects do you have in .htaccess?

Re: Mobile Site is not displaying 13 years ago #6193

  • thejamjr
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
Website is active...I was blocking non-US IP addresses.  The following are the only Rewrites I have in the .htaccess file:

RewriteCond %{DOCUMENT_ROOT}/cache/%{REQUEST_URI} -f 
RewriteRule (.*) /cache/$1 [L]

RewriteCond %{HTTP_HOST} ^matco\.net$ [NC]
RewriteRule ^(.*)$ www.matco.net/$1 [L,R=301]

Aside from the other standard .htaccess directives that are part of the Joomla htaccess.txt file.

Re: Mobile Site is not displaying 13 years ago #6194

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
thejamjr wrote:
RewriteCond %{DOCUMENT_ROOT}/cache/%{REQUEST_URI} -f 
RewriteRule (.*) /cache/$1 [L]

This kind of caching prevent MJ to work, because in this case there is no way to deliver different pages to different devices with the same URL.

Re: Mobile Site is not displaying 13 years ago #6218

  • thejamjr
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
I have found the source of one problem, but the rewrite does not seem to want to work. Here is my .htaccess file contents, when I comment out the non-www to www rewrite, everything works fine, but when I leave it in, it won't load the mobile site...

## Begin .htaccess
#
AddHandler phpini-cgi .php .htm
Action phpini-cgi /cgi-bin/php5-custom-ini.cgi

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule .* index.php [F]

## When commented out, site works fine, mobile and all, but wont rewrite non-www to www address.
#
# RewriteCond %{HTTP_HOST} ^matco\.net$ [NC]
# RewriteRule ^(.*)$ www.matco.net/$1 [R=301,L]

RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L]
Last Edit: 13 years ago by thejamjr. Reason: formatting
  • Page:
  • 1
Time to create page: 0.09 seconds

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.