elementor / wp2static

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

backslash and foward slash while deploy #904

Closed wankio closed 9 months ago

wankio commented 9 months 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 9 months ago
                    if ($status_code === 404) {
                        // Replace backslashes with forward slashes in the URL
                        $fixed_url = str_replace('\\', '/', $urls[$index]['url']);