I have a Joomla site and sometimes the site will not load on mobile data. If I clear my browser and try to load the site on LTE it will not load, then I switch to 3g and it will load up. Then the same thing happens on 3G. I clear my browser and the site will not load, I switch to LTE and the site loads. I have no issues on home/office wifi.
The site and all of the plug-ins are up to date and then I have disabled any that are not being used.
I get "Safari can not open the page because it could not connect to the server."
if I try and go to sundenmanagement.com with out the https or home1 I get a "connection time out error"
I have the following code and please note I am no pro at this. I do have two htaccess files, one is in the htdocs and it is a copy of the one in the home1 folder.
I am trying to redirect all traffic to https and to the /home1/index.php then will need to figure out how to remove www. if it has been added.
index.php4 - is in the htdocs
<?php header('Location: https://sundenmanagement.com/home1/');exit;?>
htaccess - it is the Joomla htaccess file and it is located where it says ## Begin - Custom redirects.
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://sundenmanagement.com/home1/$1 [L,R=301]
I am not sure if this is to do with my cell provider or the redirects.
Any help on this one would be greatly appreciated. Thanks!
My Answer:
It seems like the issue might be related to the redirects in your .htaccess file.
First, make sure that you only have one .htaccess file in the root directory of your Joomla site. Having two .htaccess files could cause conflicts and unexpected behavior.
Next, try simplifying your redirect rules in the .htaccess file. You can combine the www removal and HTTPS redirect into one rule like this:
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^ https://sundenmanagement.com/home1%{REQUEST_URI} [L,R=301]
This rule will redirect all traffic to HTTPS and remove the www subdomain if it's present.
After making these changes, clear your browser cache and try accessing the site on mobile data again. If the issue persists, it might be worth contacting your cell provider to see if there are any network issues on their end.
Rate this post
4 of 5 based on 1326 votesComments