wp2static: Subdomain duplicated in the exported files
EDIT:
Confirmed issue and was able to reproduce:
SAD PATHS:
- given WP Installed at domain.com/subdir/ and trying to export to domain.com/ fails to export properly. URL rewriting looks OK, but filepaths have not been modified at all
- given WP Installed at domain.com/subdir/ and trying to export to domain.com/subdir/anothersubdir/ fails to export properly (urls rewritten with duplication of the paths, like http://172.17.0.3/banana/static/static/static/), no filepaths rewritten properly
- given WP Installed at domain.com/subdir/ and trying to export to someotherdomain.com fails to export properly (urls rewritten OK, but getting an index.php included in the output dir…) no filepaths rewritten properly
Unless I misunderstood something, I think there is a bug in the latest version of the plugin (2.6) : the subdomain I chose (static.ndd.com) was not the correct one in the exported files. Instead, I had the same subdomain twice, like so : static.static.ndd.com.
Here are my settings :

And here is the beginning of the index.html file :
<!DOCTYPE html>
<head>
<base href="https://static.static.voiretmanger.fr" />
<meta charset="UTF-8">
<meta name="apple-mobile-web-app-title" content="Voir et manger" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<meta property="fb:pages" content="384298108368" />
<link href='https://static.static.voiretmanger.fr/contents/ui/theme/css/font.css' rel='stylesheet' type='text/css'>
<link rel="stylesheet" media="all" href="https://static.static.voiretmanger.fr/contents/ui/theme/style.css" />
<link rel="shortcut icon" href="https://static.static.voiretmanger.fr/contents/favicon.ico" />
<link rel="mask-icon" href="https://static.static.voiretmanger.fr/contents/icon.svg" color="rgb(197, 31, 22)">
<link rel="preload" href="https://static.static.voiretmanger.fr/contents/ui/theme/css/portico_layer-webfont.woff2" as="font" type="font/woff2"$
<link rel="preload" href="https://static.static.voiretmanger.fr/contents/ui/theme/css/portico_vintage-webfont.woff2" as="font" type="font/woff$
<!-- This site is optimized with the Yoast SEO plugin v7.6.1 - https://yoast.com/wordpress/plugins/seo/ -->
<title>À voir et à manger - Nicoflo</title>
<meta name="description" content="Des critiques de films et de séries, ainsi que de restaurants."/>
Let me know if you need more information.
Thanks for the plugin !
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 19 (13 by maintainers)
Commits related to this issue
- failing test for #79 — committed to elementor/wp2static by leonstafford 6 years ago
- fixes #79 - duplicate subdomains being rewritten — committed to elementor/wp2static by leonstafford 6 years ago
- fixes #79 - duplicate subdomains being rewritten — committed to elementor/wp2static by leonstafford 6 years ago
- failing test for #79 Former-commit-id: 1c426ef980ae173394d7c378fd2b30c8b7aecc39 — committed to elementor/wp2static by leonstafford 6 years ago
- fixes #79 - duplicate subdomains being rewritten Former-commit-id: 96d7d2739a2e4b26476e10266655ea668943673f — committed to elementor/wp2static by leonstafford 6 years ago
Okay now that would be interesting indeed ! 👌
I will follow the project then. Thanks !