Page 1 of 1

*** SOLVED *** Link works on preview, not on publish

Posted: Fri Jul 05, 2024 5:44 pm
by Thepaac
I have a page on my website that has a link to another page on the website. All links work in the preview mode, however when I publish the pages, and initiate the link, it goes to "404 not found" error. How do I fix this? The website is https://www.paacaz.com then select firetruck I understand you cannot see the preview page that works, but I hope you can give me an answer.
Thanks

Re: Link works on preview, not on publish

Posted: Fri Jul 05, 2024 5:58 pm
by Pablo
The links seem to work for me.
Maybe there is something wrong with your browser?

Re: Link works on preview, not on publish

Posted: Fri Jul 05, 2024 6:54 pm
by BaconFries
It is just me that is seeing this?

Image

Re: Link works on preview, not on publish

Posted: Fri Jul 05, 2024 7:35 pm
by Thepaac
What browser are you using? I've tried Google, Duck Duck Go, Fire Fox, and Microsoft Edge, with the same error.

Thepaac

Re: Link works on preview, not on publish

Posted: Fri Jul 05, 2024 7:48 pm
by Thepaac
BaconFries,

Our club website is not secured so that caution comes up on several browsers, go to the advanced to get to the site.

Thepaac

Re: Link works on preview, not on publish

Posted: Fri Jul 05, 2024 7:56 pm
by Pablo
It works for me.
What exactly do I need to do to see the problem with links?

Re: Link works on preview, not on publish

Posted: Fri Jul 05, 2024 11:53 pm
by Thepaac
The website is www.paacaz.com. At the home page click on the menu for the Firetruck. When that page opens click on 'CLICK HERE TO SE A BRIEF HISTORY...... The page 404 not found opens. Not the page that it should link to.

Re: Link works on preview, not on publish

Posted: Sat Jul 06, 2024 12:34 am
by BaconFries
As previously I get a security risk of that link so there is no way I am going to click on anything!. In general when you get a 404 it means that the link/url (file html or php) cannot be found on the server. This has nothing to do with the software at all you yourself will need to ensure that you have uploaded all files to the server. Note I did visit the homepage and a couple other that didn't throw any risk and on looking at the source it shows that you are using WB14 please note that this is no longer supported but as mentioned above ensure all files are on the server.

Re: Link works on preview, not on publish

Posted: Sat Jul 06, 2024 12:51 am
by Thepaac
How can it not be on the server if you con see it in preview mode?

Re: Link works on preview, not on publish

Posted: Sat Jul 06, 2024 2:02 am
by BaconFries
How can it not be on the server if you con see it in preview mode?
Because in "Preview" it is what you are seeing locally on your PC/Laptop where the file page excists whereas if you haven’t uploaded/published that page to your server then it won't display or be found that's why.
In general there should be no difference but if you don't upload/publish all files then you will have have issues as the 404 shows. 404 pages are well documented on the net as you can read here:
https://en.m.wikipedia.org/wiki/HTTP_404
I would suggest that you ensure you have actually published the page in question and try again.
See the following:
Publishing your web pages reading from Select which pages will be published

Re: Link works on preview, not on publish

Posted: Sat Jul 06, 2024 3:01 am
by wwonderfull
baconfries I think he was trying to say he does not have the ssl certificate for his domain and mistakenly wrote https://www.paacaz.com/ which had shown me the same thing you had seen but if we use http://www.paacaz.com/ then the site shows I tested. Although I always have a dedicated browser just for security reasons which keeps it safe : )

https://prnt.sc/fbu-vfYSWO5a

And Thepaac try baconfries suggestion as your page was not published which I have also checked and can confirm. It showed 404 error which means page was not found.

Re: Link works on preview, not on publish

Posted: Sat Jul 06, 2024 3:38 am
by Thepaac
Thanks, everyone your to suggestions helped me solve the issue.