Meadowvale Inspections
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: http redirects to https. how to also redirect for mobile deviceHi. Yes I was able to get it fixed, but I didn’t do it. I had my hosting provider do it for me. That was probably reasonable since they sold me the gomobi site in the first place. From what I remember, the change was made through my htaccess file, but I really have no idea what the exact changes were.
I no longer use the gomobi site for my mobile website. Not that there was anything wrong with it, but I decided to use a responsive website theme instead, and now the mobile version and the desktop versions are pretty much the same. It’s a MUCH better solution for me at least – only one site to update and it fits everything all the time. It’s definitely the way to go for me.
Good luck. I hope this gives you some ideas at least.
Forum: Fixing WordPress
In reply to: http redirects to https. how to also redirect for mobile deviceI tried this code generated by GoMobi using DeviceAtlas. No luck yet. Any other advice? (HopeI’m using the backticks properly here!)
<?php /** * @package mredirect * @version 1.1 */ /* Plugin Name: Mobile Redirection Plugin Description: Redirect mobile visitors to mobile site using DeviceAtlas device detection service. Version: 1.1 */ define('MOBILE_SITE', 'https://m.meadowvaleinspections.com'); header('Vary: User-Agent'); function load_redirection_script() { $path = strlen($_SERVER['REQUEST_URI'])>1 ? '/w/'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'] : ''; print '<script type="text/javascript" src="https://detect.deviceatlas.com/redirect.js?m='.MOBILE_SITE.'&smart=off"></script>'; print '<link rel="alternate" media="only screen and (max-width: 640px)" href="'.MOBILE_SITE.$path.'" >'; } add_action('wp_head', 'load_redirection_script');
Forum: Fixing WordPress
In reply to: http redirects to https. how to also redirect for mobile deviceStill looking around. GoMobi says the code should be in the index.html file so I looked at that and saw I had already put the re-direction code in there. No luck though. Here is what I have in there now.
/public_html/index.html_
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”https://www.w3.org/1999/xhtml”>
<head><script type=”text/javascript” src=”https://detect.deviceatlas.com/redirect.js?d=https://https://meadowvaleinspections.com&m=https://m.meadowvaleinspections.com”></script>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<title>Welcome to HostPapa</title><style type=”text/css”> and a bunch of other stuff.
Forum: Fixing WordPress
In reply to: http redirects to https. how to also redirect for mobile deviceFrom what I recall, I inserted a javascript re-direction code somewhere into my site. I don’t remember where, and I haven’t been able to find it since.
GoMobi gives me the following re-direction code:
<script type=”text/javascript” src=”https://detect.deviceatlas.com/redirect.js?d=https://https://meadowvaleinspections.com&m=https://m.meadowvaleinspections.com”></script>
Looking at that without knowing exactly what it means, it appears it could be the re-direction code I want instead of whatever I have now. But I haven’t been able to figure out where to put it.
Does that look like it might work to you if I ever figure out where it should go?
And thanks for your help here. It’s terrific to have this opportunity to get advice from people who know a lot more that I do about this stuff.
Forum: Your WordPress
In reply to: New WordPress Home Inspection SiteOne more thing, if there are any ideas you have of info that I should be including on the website, please let me know. It’s still in need of a lot of work and information. [link moderated – there’s no need to post it again.] Thanks.
Forum: Your WordPress
In reply to: New WordPress Home Inspection SiteThanks staytamed and 2ninerniner2. The blog is coming, but right now I still need to do a bunch of SEO stuff to get the site up higher in the google searches and google places. I know blogs help the ranking, and they are on the way. I have TONS of information about home inspections, property development and so on that I will post as soon as I can find the time.
Thanks for the comments!