Same Code, Same Host, Alternate...

User 629250 Photo


Registered User
50 posts

Hello,

My RLM site works pretty well.
fremontdogtrainingclub.com

It is a non-profit and also owns the .org domain name.
The .org domain name is redirected to the .com site.
The site is not "responsive" when accessing it using the .org address.
fremontdogtrainingclub.org

Anyone have any idea why this would happen?

Thanks,
Randy
User 2484360 Photo


Registered User
3,293 posts

Works here... What makes you think it is not responsive on the .org?
User 38401 Photo


Senior Advisor
10,951 posts

It's responsive for me on both domains, but I would suggest you fix your menu as it's pretty nasty and definitely not setup correctly as the buttons and padding/margin isn't setup correctly at the breakpoints and the buttons run into each other a lot.
User 629250 Photo


Registered User
50 posts

The .com site displays satisfactorily on my desktop, laptop, my wife's tablet. It's fine on my S4, Friends have tested it for me on S5, S6, apple phones and it displays the same on each.

When using the .org address it is just a miniature version of the full size page.

I ran both address through Google's test tool. The com passes and the org does not. (see attached screenshots)

User 187934 Photo


Senior Advisor
20,245 posts
Online Now

Why are you using an iframe to show your .com site through to the .org?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 629250 Photo


Registered User
50 posts

I'm not.
It's the same code. Not a copy, the same files.
The .org is simply a redirect to the .com
User 1948478 Photo


Senior Advisor
1,850 posts

Your .org site is not "redirected" to .com. Instead you're using the very old concepts of frames and framesets, which are not supported in HTML5:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>www.fremontdogtrainingclub.org</title>
</head>
<frameset rows="100%,*" border="0">
<frame src="http://FREMONTDOGTRAININGCLUB.COM" frameborder="0" />
<frame frameborder="0" noresize />
</frameset>
<!-- pageok -->
<!-- 05 -->
<!-- -->
</html>

This is likely to cause problems with the Google mobile tests and with mobile devices. (Still, surprisingly, the two sites seem to behave identically for all widths in Chrome and Firefox as far as I can see).

To properly redirect the .org site to .com, you should use a 301 redirect in your .htaccess file:
Redirect 301 /fremontdogtrainingclub.org http://www.fremontdogtrainingclub.com
User 1948478 Photo


Senior Advisor
1,850 posts

My sample "redirect 301" above is a bit too oversimplified for redirecting a whole domain ;) . Sorry about that!

I'd suggest you Google "redirect 301 from one domain to another" to get guidance for the proper rewrite rules. Your cPanel may also have a 'wizard' for this sort of thing, which would make it even easier.
User 187934 Photo


Senior Advisor
20,245 posts
Online Now

Ok it's not an iframe but it's a framset. Here's your source code for the .org.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>

<head>
<title>www.fremontdogtrainingclub.org</title>

</head>
<frameset rows="100%,*" border="0">
<frame src="http://FREMONTDOGTRAININGCLUB.COM" frameborder="0" />
<frame frameborder="0" noresize />
</frameset>

<!-- pageok -->
<!-- 02 -->
<!-- -->
</html>

You should be able to change some settings on your host to get it to work correctly. I have a site with .net and .org. The .org is parked but when you type mydowmain.org the pages all keep that domain and aren't redirected or shown through a frame.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 629250 Photo


Registered User
50 posts

Eric,
Thanks for the post. It got me thinking. I never thought to check the source code within the browser. I saw what you were referring to.

The site is hosted at GoDaddy. I used the cPanel redirect tool to assign the .org to the .com. The iframe method must be how the tool redirects the domain. I contacted GoDaddy support and they changed the method of redirecting. The page displays properly now.

Thanks!

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.