I’m trying to set up a local version of Magento for develop that mirrors a ‘live’ test version that will hopefully become a live installation in the coming months.
I’m having big trouble trying to get it to ‘forget’ which host it was installed on, for example when I move my development code to the staging server:
1) The admin log-in immediately changes back to the developent URL when I press submit
2) If I view the source of any page there are absolute links to the style-sheets for example referring to the host on which I ran the installer on
3) All links are absolute referring to the original host where the installer was ran
I recursively grep’ed over my installation and the database and removed any references to the installer host viz: cache, sessions and I truncated log_url in the DB. But as soon as I refresh the old references re-appear. I’ve tried deleting all cookies also.
Does anyone have any similar experiences they can share or perhaps you have a strategy for local development/staging/go-live? Ideally I’d like my code in my own svn repo - but what files do I exclude because they are host-specific?
Finally - maybe I missed something basic in the installation - but is is possible not to have absolute URI’s at all?
Thanks for reading, any comments or advice will be greatly appreciated.