• Resolved kingbolo

    (@kingbolo)


    Hello,

    WordPress is installed in a directory website.nl/nw
    The Burst statistics also mentions website.nl/nw in the reports.

    How can I set Burst not to show /nw but only website.nl ?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    Does the actual URL that users visit include /nw ? Or does it use rewrite rules to just show website.nl ?

    And is the site_url set to website.nl/nw ?

    Thread Starter kingbolo

    (@kingbolo)

    Dag Rogier
    Does the actual URL that users visit include /nw ? No it shows website.nl

    And the site_url is set to website.nl ( WordPress URL to website.nl/nw )

    Groet
    Edwin

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    Thanks for the info. I’ve created a similar setup (I think), based on https://developer.wordpress.org/advanced-administration/server/wordpress-in-directory/, method 2.

    • moved all WP files to a subdirectory
    • Moved the index.php file, and changed it to use subdirectory.
    • Set the WordPress URL to use domain.com/sub, but the Site URL to use domain.com
    • Saved permalinks to update links.

    Now the test site loads over domain.com, but shows the pages from domain.com/sub. This seems what you describe. When I now visit the site, I get URLs in Burst Statistics without the /sub, which is what the expected result is, as Burst uses the actual URL that is used to visit the site.

    So apparently your setup is not exactly as described above. Can you tell me what you did differently?

    Thread Starter kingbolo

    (@kingbolo)

    Hi Rogier,
    Looks to me that my set-up is the same.

    • I always setup a WP site in a directory. All the files are in that directory. (in this case /nw)
    • When the site can go live I copy the index.php to the root an let that point to /nw. ( require DIR . '/nw/wp-blog-header.php';
    • After that I set the WordPress URL to use domain.com/sub, but the Site URL to use domain.com

    What I don’t do is save the permalinks to update links.

    Groet
    Edwin

    Thread Starter kingbolo

    (@kingbolo)

    To be clear. The reports that are sent by email it mentions website.nl/nw
    “Your montly insights for website.nl/nw are here.”

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    Now I understand what the problem is! The email reports are indeed using the site_url() function, which in your case points to the /sub directory. This function should be using the home_url() function instead. I’ll fix this and include it in the next release!

    Thread Starter kingbolo

    (@kingbolo)

    Oké, sorry if my initial message was unclear .

    Great, if you can find a solution.

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    @kingbolo If you update to 3.1.5, the issue should be resolved!

    Thread Starter kingbolo

    (@kingbolo)

    Top, it works

    Dank je.

Viewing 9 replies - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.