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
You have no website active, currently. Not sure if you're having serious problems, or if you're just fixing your site.
Browser displays "Error 310 (net::ERR_TOO_MANY_REDIRECTS):". What redirects do you have in .htaccess?
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.
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.
thejamjr wrote:
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.
RewriteCond %{DOCUMENT_ROOT}/cache/%{REQUEST_URI} -f
RewriteRule (.*) /cache/$1 [L]
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.
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]
## 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]