WordPress.org

Ready to get started?Download WordPress

Forums

WP Migrate DB
How do I get Current Address & File Path Urls if Prod site is not WordPress? (7 posts)

  1. pfernand
    Member
    Posted 8 months ago #

    What if the production site is not a WordPress site? How do I find the CURRENT ADDRESS and CURRENT FILE PATH URLs?

    https://wordpress.org/plugins/wp-migrate-db/

  2. Chris Aprea
    Member
    Plugin Author

    Posted 8 months ago #

    Hi pfernan,

    The CURRENT ADDRESS is simply the base web address, e.g. http://example.com

    The CURRENT FILE PATH is absolute file path of the site.

    You can find this out by running the following code

    echo dirname( __FILE__ );

    Let me know if you need anything else.

    Cheers,

    Chris

  3. pfernand
    Member
    Posted 8 months ago #

    Hi Chris,

    How and where do i run the code you indicated.

    A million thanks for your help.

    pfernand

  4. Chris Aprea
    Member
    Plugin Author

    Posted 8 months ago #

    Apologies, I should have specified.

    Create a test.php in the root directory of your WordPress installation (usually where the wp-config.php is located).

    Place the code I supplied in the previous reply in this file and run it (i.e. visit the test.php in your web browser).

  5. pfernand
    Member
    Posted 8 months ago #

    Thank you Chris. I created the file and ran your code for one of my WordPress installations and I got the file path, however, what if the production site is not a WordPress site? I wouldn't be able to just create and run a test.php file for a non-WordPress site -- could I?

    Sorry if I sound dense but this is new ground for me.

    Appreciate your help. Thank you.

  6. Chris Aprea
    Member
    Plugin Author

    Posted 8 months ago #

    You could but I'm not entirely sure what the point of it would be.

    WP Migrate DB only creates export files that work between WordPress installations.

    The assumption is that you're working with 2 WordPress installations otherwise the export file would be seemingly useless.

  7. pfernand
    Member
    Posted 8 months ago #

    Oh I see, thanks. At least I know how to migrate between WordPress installations Thank you.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.