• Hi,

    I was needing some help with my WordPress installation which I successfully developed on XAMPP server. I now want to migrate files to my domain and am faced with having to change all physical references from localhost to domain name.

    Was wondering what the correct procedure might be to achieve this.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • You probably don’t want to use absolute urls in your code, it is generally preferred to use the function ‘bloginfo‘. So for example, instead of writing:

    https://www.example.com/wp-content/themes/theme/images/image.png

    you should write

    <?php bloginfo('template_directory'); ?>/images/image.png

    This way it works no matter what domain your on.

    I would recommend going back and changing to the bloginfo function, which depending on your code editor, you could open all your theme files and search all open documents and replace it with the bloginfo function. If you don’t want to do that, you might be able to use the Search and Replace plugin.

    But really, using the bloginfo function is much much better in the longrun.

    Other code editors probably do this, but I know it is in the free editor Komodo Edit by ActiveState. Just Google that and you should find it pretty easily.

    Thread Starter GreenFrog

    (@greenfrog)

    Thanks for that.

    Im a bit perplexed though on whether this would work with absolute addresses such as forum redirects and the like. What I have works 100% and was loathed to change before I did a bit of investigating first.

    From what I can gather, database changes to wordpress and sub-directories such as my SMF forum which Ive incorporated have their own unique settings and would also need to be considered. Im not sure how to go about ammending those files or any other for that matter?

    There are a number of physical addresses within my wordpress Admin panel that also have these as well as the custom theme and other plugins. I can alter some but am concerned I wont get the important ones which could foul up my Database.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘XAMPP install’ is closed to new replies.