Click to See Complete Forum and Search --> : Personal website pages resolve to old web address


Devsforev
03-02-2005, 10:19 AM
Good morning all. I am working on setting up a website at the moment, and I am running into a few snags. I used to have an account at dyndns.org (web address being devsdomain.homelinux.com), but I took that down when I paid for my own domain name through a web registrar.

However, some of links (such as the login button on my web gallery) STILL resolve to the old web address! It's supposed to be directed to www.devsdomain.com (nothing interesting there at the moment) but I keep getting errors such as :

Safari can't open the page "http://devsdomain.homelinux.com/[rest of address edited out]" because it can't find the server "devsdomain.homelinux.com"

I know it can't find the server devsdomain.homelinux.com --- it doesn't exist anymore!!!! It now resides at devsdomain.com!!! How do i fix this bloody problem? Thanks a bunch; have a good one!

Icarus
03-02-2005, 10:38 AM
Sounds like some hardcoded links in the pages

Break out your favorate text editor and start hunting :)

Devsforev
03-02-2005, 10:42 AM
If they were links from sites that i personally coded, that would be the first thing I would check. However, I downloaded a web album generator which works in php. I coded none of the links myself, however, it still resolves to that old address. Any thoughts? Thanks

-- Devsforev

blobaugh
03-02-2005, 11:08 AM
I would tend to agree with icarus on this one. Check the links on all the pages in question.

sharth
03-02-2005, 11:20 AM
grep -r "devsdomain.homelinux.com" *

bwkaz
03-02-2005, 08:05 PM
Originally posted by Devsforev
I downloaded a web album generator which works in php. So look through the PHP files for your old domain, and replace it with the new one? What did you configure when you installed this package? -- look at those files.

Most PHP packages I've seen have a "config.php" file or similar, where all the configuration settings are stored. Most of them also have a configuration setting for "the DNS name of this server". You would need to change that.

Otherwise, Apache has a ServerName directive in its httpd.conf file. Maybe PHP allows access to this value, and your page-generation scripts are using it?

Admstng
03-08-2005, 04:13 PM
This is not a DNS issue, "www" in Zone "devdomainwhatver.com" is resolving to the correct address. so any more req to pages on this server should go to the correct place.

As mentioned above, I would use grep to find those links.



-Adam

riscphree
03-08-2005, 04:24 PM
if you used something like geek log or PHP nuke or anything like that, check out the config file that it has. there might be something in there for you

bwkaz
03-08-2005, 07:33 PM
Who said it was a DNS problem?

I said "the DNS name of the server" at one point, but I did not mean that I thought the problem was that the name was resolving incorrectly. I think the problem is that there's a file somewhere that's giving the PHP code the wrong name in the first place. (Or, the wrong name is hardcoded in the non-PHP HTML somewhere.)

TheSpeedoBeast
03-09-2005, 12:34 AM
Make sure other browsers are redirecting also; could be a cache issue of some sort...

knute
03-09-2005, 12:43 AM
Originally posted by bwkaz
Who said it was a DNS problem?

I said "the DNS name of the server" at one point, but I did not mean that I thought the problem was that the name was resolving incorrectly. I think the problem is that there's a file somewhere that's giving the PHP code the wrong name in the first place. (Or, the wrong name is hardcoded in the non-PHP HTML somewhere.)

So then grep the directory where these pages are located to find the correct file, then simply use vim's search and replace functionality to change the web addy. :)

If you need help with it, feel free to drop me line.