-=How I change my DNS name in Gallery2?=-
|
pedro666
![]()
Joined: 2005-10-11
Posts: 12 |
Posted: Thu, 2005-10-20 14:25
|
|
How I can change my DNS name of my site ? Gallery2 seem to have hardcode somewhere my old DNS name where I change it and how ? Thanks Pedro |
|
| Login or register to post comments |


Posts: 32506
no, G2 doesn't store your hostname / domain.
it gets the hostname from your server configuration. maybe you need to change the hostname in httpd.conf (your webserver).
btw: DNS = domain name server, so it's not what you think it is
Posts: 3233
If you recently changed servers or domain names, it might also be due to the re-write module. Deactiave and uninstall it, then re-install and configure it. It would be trivial to verify this is the problem, if you open your .htaccess file and search for your domain name. If it is there, its the problem. If not, it isn't. G2 doesn't use your domain name at all anywhere else, if it even uses it there.
_________________________________
Support & Documentation || Donate to Gallery || My Website
Posts: 32506
the rewrite module doesn't store the domain name since beta 2 or 3. we only store the path from the first slash after the domain name / to main.php.
Posts: 3233
I see!
_________________________________
Support & Documentation || Donate to Gallery || My Website
Posts: 2
if you change your domain name after you have already installed, edit the /Gallery/config.php at the bottom where your old domain name is, save it back and you should be good to go.
In some cases, run cmd ipconfig /flushdns
I find that one pretty handy when building websites. Use it often