New pages alternate between loading and throwing a 404 error

Recently, any new page I deploy on my website is acting strangely.

It might initially load correctly, but after a reload the browser displays a 404 error. If I keep reloading, it will just alternate between the two states.

The behaviour is independent of device and browser (I’ve tried Chrome and Safari) and the problem does not occur when testing on my localhost.

I stripped back the page code (just incase it was a dodgy script):

<!doctype html>
<html>
<head>
    <base href="/admin/">
    <meta charset="UTF-8">
    <title>Test Page</title>
</head>
<body is="dmx-app" id="test01">
    This is a test page
</body>
</html>

In Project Settings I have ‘Use Routing’ and ‘Add Auto Base’ both set to ON but that hasn’t caused problems with any of the previous php pages within the admin directory.

Does anyone have any suggestions I can try? Or let me know what other information to provide.

Going by the screenshot web URL you are not using routing? Those should be off?

I can confirm this is happening as I can recreate it. I’d say it has to do with routing settings most likely.

Should be easy to test. Just remove this line.

<base href="/admin/">

Hi Brad. Thanks for confirming the issue.

Yeah, I didn’t set up any routing for the test01.php page, but I also didn’t do this for other pages within the same admin subdirectory (eg. https://www.promostuff.com.au/admin/login.php) and these render correctly.

So I turned off routing in ‘Project Settings’ which enabled me to remove <base href="/admin/">. But unfortunately the same behaviour is occurring once I redeploy. Very strange.

That is very strange. I just tried it again as well and confirmed that line was gone, reset my browser cache and everything and it’s still happening. I’m at a loss.

Cheers for that. I’ll try some further digging and see if I can come up with any other references to this kind of thing.

Unfortunately I’m still unable to resolve this problem. After I delete the test01.php file from my server using the file manager, as expected the page doesn’t load. However once I upload it again, it starts displaying the dual behaviour I’ve mentioned in previous posts.

At this stage I’m not sure if it’s a Wappler, Docker or AWS issue.

Here’s the url: https://www.promostuff.com.au/admin/test01.php

Does anyone have any suggestions? Thanks.