Website won't work without www on mobile phone

Website won't work without www on mobile phone - .htaccess files are extremely useful in many cases for users who either do not have root permissions or for users who simply aren't comfortable in making changes in their web server's configuration file. Trying to debug .htaccess not working isn't always the easiest thing to do, however, hopefully by checking the discuss below mentioned about htaccess, redirects, mobile, , .htaccess common problems as well as the troubleshooting tips, you'll have a better grasp on what you may have to modify to get your .htaccess file running smoothly.Problem :


I have updated the .htaccess file so that when someone types in example.com, they are redirected to www.example.com. This works great on my computer, but when I try it on my cell phone is does not redirect. Instead I get the "Webpage not available" message. Does anyone know why? I've designed many websites and have never run into this problem.


Solution :

The problem is with your DNS configuration. There is no DNS record for byerswrecker.com so it won't resolve to any IPs, but www.byerswrecker.com resolves to your hosting provider IP and works! You should have DNS cached on your PC but not on your phone, so it works on your PC but not on your phone.


Additionally, if you would like to do some further testing, give the htaccess tester tool a try. It allows you to specify a certain URL as well as the rules you would like to include and then shows which rules were tested, which ones met the criteria, and which ones were executed.

Comments

Popular posts from this blog

Rewrite in Mediawiki, remove index.php, .htaccess

.htaccess rewrite wildcard folder paths from host

Using .htaccess to set a cookie and 301 redirect