Skip Navigation

[Resolved] 404 error on travel reference site

This thread is resolved. Here is a description of the problem and solution.

Problem:
On the front-end of the travel reference site when trying to view tour posts they all give a 404 error.

Solution:
Re-save permalinks and include the post name in the URL structure.

This support ticket is created 6 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 2 replies, has 2 voices.

Last updated by poulP 6 years, 10 months ago.

Assisted by: Nigel.

Author
Posts
#607003

Hi,
I have succesfully installed the "Listing site – Travel Destinations" reference site on my Google Cloud account.
However I get 404 page not found on every page that contains /tour/ in the url.
I dont get the 404 error on the homepage and /add-new-tour/ page.

So I think it must have something to do with .htaccess.

I can change .htaccess throug SSH on Google Cloud, but can you tell me how the .htaccess for the tour listing reference site should look like? There must be some rewrite rule that maybe have to be included...

Thanks,
Poul

#607112

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screen Shot 2018-01-17 at 11.24.13.png

Hi there

I'm not familiar with hosting WordPress sites on Google Cloud, but is WordPress able to write .htaccess itself? (It needs to be able to for permalinks to work.)

First, double check the settings for the tour post type by editing it from Toolset > Post Types.

Scroll down to the options section and make sure standard WordPress rewrite rules are being used (see screenshot).

The go to Settings > Permalinks and re-save the permalinks, using the post name for your permalink structure.

If that doesn't work you'll need to check how permalinks are supposed to work with Google Cloud WordPress hosting.

#607232

Hi,
thanks, your solution solved the problem.
It was Settings > Permalinks that was not set to use the post name for permalink structure.
After changed that, evrything seems to work fine.

Best,
Poul