Jump to content

Recommended Posts

Posted

Hi,

If I build a site on a localhost server. Is it easy to transfer to a live server. Mainly concerned with the database? Or is it a simple export and import?

Posted

Export and import is enough, no problems there. Only things you need to take care are file permissions and that you have same password hash in your site/config.php file.

Posted

I always develop in a subdirectory and usually launch to root. While Page Link Abstractor is one way to resolve that, an even simpler way is to do a search/replace on your DB dump file before importing it to your live server/root installation. I use TextWrangler (free version of BBEdit), but any quality plain-text editor should work. So lets say you were developing a site locally in /subdir/ and you wanted to update all the /subdir/ links to be / (root) instead:

Search for: ="/subdir/

Replace with: ="/

This should cover all <a> and <img> tags, like <a href="/subdir or <img src="/subdir.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...