Support » Plugin: WP2Static » How to disable Path rewriting?

  • Resolved narwen

    (@narwen)


    Is it possible to disable Path rewriting? In my case paths already hidden via WordPress itself by adding in wp-config.php

    define( 'WP_CONTENT_DIR', dirname(__FILE__) . '/assets' ); 
    define( 'WP_CONTENT_URL', 'http://url/assets' );
    define( 'UPLOADS', 'assets/uploads' );
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Leon Stafford

    (@leonstafford)

    Hi there,

    Thanks for using the plugin.

    Hmm, this will only rewrite the exported HTML and to avoid that rewriting, you could set the rewrite paths to the WP defaults, ie, wp-content to wp-content, however, as you’re doing it before it gets to the export stage in your wp-config, I’d guess that it would respect that and just export the same custom URLs you are using.

    What currently happens when you do an export?

    Cheers,

    Leon

    Thread Starter narwen

    (@narwen)

    .

    • This reply was modified 4 years ago by narwen.
    • This reply was modified 4 years ago by narwen.
    • This reply was modified 4 years ago by narwen.
    • This reply was modified 4 years ago by narwen.
    Thread Starter narwen

    (@narwen)

    Hmmm… No. It rewrite paths http://url/assets/themes to http://url/wp-content/ui and so on.

    Plugin Author Leon Stafford

    (@leonstafford)

    Hi Narwen,

    OK, great to hear!

    Please let me know if any other questions arise. You can email me direct at leonstafford@protonmail.com

    If you’re happy with the plugin, please leave a review at https://wordpress.org/support/plugin/static-html-output-plugin/reviews/

    Cheers,

    Leon

    Plugin Author Leon Stafford

    (@leonstafford)

    Hi Narwen,

    Oh, just saw your latest update. Could you please email me your current URL structure and the output from the export? I’ll work on a solution.

    Cheers,

    Leon

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to disable Path rewriting?’ is closed to new replies.