elementor / wp2static

WordPress static site generator for security, performance and cost benefits
https://wp2static.com
The Unlicense
1.43k stars 270 forks source link

backslash and foward slash while deploy #904

Closed wankio closed 1 year ago

wankio commented 1 year ago

i found out it messed up with path, it put / and \ together in path which leads to 404 for css, js,media https://imgur.com/a/t4FbDBp

wankio commented 1 year ago
                    if ($status_code === 404) {
                        // Replace backslashes with forward slashes in the URL
                        $fixed_url = str_replace('\\', '/', $urls[$index]['url']);