
- You are not logged in. | Login
November 17, 2006 7:12 am
- napkdd1
- Member


images not working after move
I also have this problem. I moved my site from a .com to .net domain and now all my images aren't working anymore. It's all in php code by my friend but he's not around anymore to help, maybe someone knows here?
November 17, 2006 4:25 pm
- phppat
- Member


Re: images not working after move
More than likely your image links are setup using a hard URL that references your previous .com address.
Try opening your pages in your favorite editor, do a 'Ctrl-F' search for your previous domain name (example.com) in each page and replace it with your new domain name.
Alternatively, if you think you may move the site again in the future, you could replace the domain name with this wherever it appears:
<?php echo $_SERVER['HTTP_HOST']; ?>
That will output the current domain name wherever the php script runs.
PHP monster


