Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi pfernan,

    The CURRENT ADDRESS is simply the base web address, e.g. https://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

    Thread Starter pfernand

    (@pfernand)

    Hi Chris,

    How and where do i run the code you indicated.

    A million thanks for your help.

    pfernand

    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).

    Thread Starter pfernand

    (@pfernand)

    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.

    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.

    Thread Starter pfernand

    (@pfernand)

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How do I get Current Address & File Path Urls if Prod site is not WordPress?’ is closed to new replies.