Providers known to use frames?

Providers known to use frames?

by Adnan M -
Number of replies: 2

Hello all,

I recently registered a domain name with MyDomain.com for my self-hosted Moodle site. I am running an Ubuntu LAMP server with Moodle 1.7 installed. Internally, everything worked great and after registering my domain I changed the wwwroot to 'http://www.mydomainname.com'. For several hours everything worked great - the address would resolve just fine, all links were masked...all of a sudden, my site reverted to the dreaded 'frames' version of itself (i.e. completely unusable). From searching the forums, I gathered that some providers use frames which can be detrimental to Moodle, but before I go transfering my domain to a different provider I thought I'd ask for some help here and hopefully avoid the transfer altogether.

Here are some scenarios I've played with so far:

1) When I change my wwwroot back to my external IP, I can access the site just fine by typing the IP in the address bar  - all functionality is back. If I type in my domain name, the site works but browser status bar displays the IP address when navigating or hovering over links. Looking at the HTML source, it's the frames version of the site when loaded using the domain name and complete code when the IP address is typed in.

2) Setting my wwwroot to my domain name breaks Moodle completely, whether I type in the IP or the domain name in the address bar. When I hover over the links, some of them show the IP, others the domain name. HTML source shows the same results as example 1.

As for the settings on my MyDomain.com account, I currently have no 'A' record, URL forwarding is disabled. It may seem odd, but as I said in the beginning, I had it working for a while yesterday using those settings and mydomainname.com as my wwwroot.

Any and all hints you can provide are much appreciated,

Adnan

Average of ratings: -
In reply to Adnan M

Re: Providers known to use frames?

by John Isner -
Unfortunately, you can't just change the value of $CG->wwwroot in config.php. You also must change all the links in the database that refer to the old wwwroot (as you can see when you hover over links). There's a script in the admin directory called replace.php that will do this job for you. Make a backup before you run it. See this discussion.
In reply to John Isner

Re: Providers known to use frames?

by Adnan M -
Thanks for replying.

Actually the sole reason I was having this problem was my own impatience: my provider's DNS records get updated every 4 hours and I expected immediate results for every change I made. Once I realized that I have to wait for the changes to propagate, I created a single 'A' record and all is well now.

This is a brand new site, so I didn't have any user-created links to worry about. All I had to do is restart Apache.

Thanks again.