By vonny007 on
Hi Guys,
Iv moved over to a new web host, everything seemed to be working fine until i tried clicking a link the error says - "404 Not Found :The server can not find the requested page: 78.129.178.110/~sunkendr/og (port 80)",
..currently i have a temporary address of: http://78.129.178.110/~sunkendr/ I was wondering is there a way to get the links to point to the temporary address?
Any help would be gratefully appreciated.
Comments
depending on how you're
depending on how you're writing your content, what modules you're using, what editor you're using (e.g. rich-text like FCKeditor or TinyMCE), the links in your content may be relative (e.g. 'path/to/page'), absolute (e.g. 'http://example.com/path/to/page'), or "root relative" (e.g. '/path/to/page') which means "add this path right after the domain/host name in the URL".
the best way to handle this issue generally, IMHO, is to create all of your sites -- dev, staging, production, test site on a new host, etc -- as peers of each other, and use root relative links.
so, first of all be sure you're using root relative links and have your modules/editor configured to do the same. then, assuming your production site is at http://example.com and you're moving to a new host, point an A record for something like http://new.example.com to your new host's IP address.
similarly, you might create a local dev site at http://dev.example.com , a staging site for site editors at http://staging.example.com , etc. the use of root relative links will ensure that your db is portable across all of these sites.
hth!