• Resolved ianleon

    (@ianleon)


    I wanted to test out WP2Static so created a dummy wp site and installed it. When I generate the exported directory it contains an index.html containing this:

    !DOCTYPE HTML PUBLIC “-//IETF//DTD HTML 2.0//EN”>
    <html><head><title>404 Not Found</title></head><body>
    <h1>Not Found</h1>
    <p>The requested URL /wordpress/wordpress/ was not found on this server.</p>
    </body></html>

    The wordpress directory lives under /var/www/html. It’s a basic default install.

    Snippets from the logs:

    /
    /robots.txt
    /favicon.ico
    /sitemap.xml
    wordpress//wp-content/themes/twentyseventeen/screenshot.png
    wordpress//wp-content/themes/twentyseventeen/rtl.css
    wordpress//wp-content/themes/twentyseventeen/style.css
    wordpress//wp-content/themes/twentyseventeen/assets/css/ie8.css

    and

    404:/robots.txt
    404:/favicon.ico
    404:/sitemap.xml
    404:wordpress//wp-content/themes/twentyseventeen/screenshot.png
    404:wordpress//wp-content/themes/twentyseventeen/rtl.css
    404:wordpress//wp-content/themes/twentyseventeen/style.css
    404:wordpress//wp-content/themes/twentyseventeen/assets/css/ie8.css
    404:wordpress//wp-content/themes/twentyseventeen/assets/css/editor-style.css

    Help would be appreciated.

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Leon Stafford

    (@leonstafford)

    Hi Ian,

    Sorry for the slow reply, thought I’d already replied to this one a couple of days ago.

    I’ve seen this double slash incident a few times recently. Once, it was just a configuration option someone had in their wp-config.php which was adding a trailing slash to the site URL/home address.

    When you go to your WP dashboard > Settings > General, do you have a trailing slash on either of your URLs there?

    If not, could you please tell me a bit more about your hosting environment.

    Cheers,

    Leon

    Thread Starter ianleon

    (@ianleon)

    Hi Leon,

    Thanks for the reply (I did respond a yesterday but my reply seems to have gone awol so sorry if you get this twice).

    I checked the url settings and don’t have a trailing / on either.

    I also noted the “wordpress/wordpress” double path in index.html (as above) so checked the apache config and .htaccess for rewrites. There aren’t any so I guess the issue must be in the database.

    I wanted to test wp2static before running it on a live site so I set up a dummy site. I did this by firing up an AWS instance using a Cloudformation template designed for WP. I don’t believe I made any significant changes after the install.

    I think the next step would be to install a new copy of WP by hand (rather than using the AWS AMI) and see if that works.

    You would be welcome to have a look at my test instance if that would be useful.

    Plugin Author Leon Stafford

    (@leonstafford)

    Hi Ian,

    If you’re still having issues after today’s update, please do send me details to take a look at your dev server:

    [email protected]

    Was the AWS AMI you used the Bitnami WordPress + Apache one? There can sometimes be some tweaks needed to get it working well on certain Bitnami installs.

    Cheers,

    Leon

    Thread Starter ianleon

    (@ianleon)

    Hi Leon,

    That has fixed it. Thanks.

    I don’t use the Bitnami templates, rather than the AWS sample templates (I don’t know if one is based on the other).

    Thread Starter ianleon

    (@ianleon)

    Hi Leon,

    Bad English there. For clarity:

    I don’t use the Bitnami templates, I use the standard AWS sample ones.

    Thanks

    Plugin Author Leon Stafford

    (@leonstafford)

    Hi Ian,

    OK, great, glad it’s working now!

    I’m always fishing for 5-star reviews here:

    https://ww.wp.xz.cn/support/plugin/static-html-output-plugin/reviews/

    And do let me know any other issues/questions as the arise.

    Cheers,

    Leon

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

The topic ‘Double path in generated index.html’ is closed to new replies.