Mobile Site is not displaying

thejamjr
13 years, 6 months ago
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
xamire
13 years, 6 months ago
You have no website active, currently. Not sure if you're having serious problems, or if you're just fixing your site.
dryabov
13 years, 6 months ago
Browser displays "Error 310 (net::ERR_TOO_MANY_REDIRECTS):". What redirects do you have in .htaccess?
thejamjr
13 years, 6 months ago
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.
dryabov
13 years, 6 months ago
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.
thejamjr
13 years, 6 months ago
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]

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.