*

krallen

  • ***
  • 36 posts
"domain.com/blog" gives a 404 error
« on: August 04, 2024, 03:38:09 PM »
The address "domain.com/blog" gives a 404 error saying the page could not be found. The address "domain.com/blog/" opens but it does not open without the / sign at the end of the address. What can be done?

Marked as best answer by krallen on August 11, 2024, 03:14:30 AM
*

Wiz

  • ****
  • 145 posts
Re: "domain.com/blog" gives a 404 error
« Reply #1 on: August 10, 2024, 06:22:44 AM »
This is a plugin route issue - open index.php of the blog plugin and look for a route with only 'blog/' then change to 'blog'

That's it!

*

krallen

  • ***
  • 36 posts
Re: "domain.com/blog" gives a 404 error
« Reply #2 on: August 11, 2024, 03:14:26 AM »
Thank you very much

*

krallen

  • ***
  • 36 posts
Re: "domain.com/blog" gives a 404 error
« Reply #3 on: August 11, 2024, 03:19:53 AM »
Notification to the plugin creator

*

MB Themes

Re: "domain.com/blog" gives a 404 error
« Reply #4 on: August 13, 2024, 08:45:54 AM »
It depends if you want to have url ending with slash or not, based on that route may be changed.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

krallen

  • ***
  • 36 posts
Re: "domain.com/blog" gives a 404 error
« Reply #5 on: August 14, 2024, 05:47:20 PM »
When we type domain.com/blog, the blog section was not opening.

/public_html/oc-content/plugins/blog/index.php

edit:

48 :     osc_add_route('blg-home', 'blog', 'blog/',...........

'blog', when I deleted the / in it, it got fixed.
Now, whether I type domain.com/blog or domain.com/blog/, the blog section opens.