*

dent

  • *
  • 2 posts
404 error in plugin FAQ
« on: June 24, 2024, 10:28:42 AM »
404 error in plugin FAQ

If you type the website address as "dmain.com/faq/", the plugin works.

But

If you type the website address as "dmain.com/faq", the plugin does not work and gives a 404 wrong address error. Does anyone know how to fix this?

It doesn't work when there is a missing slash "/" at the end of the address.

test :
 plugins.abprofitrade.eu/faq 

 plugins.abprofitrade.eu/faq/

*

MB Themes

Re: 404 error in plugin FAQ
« Reply #1 on: July 01, 2024, 03:08:16 PM »
@dent
You may try to edit/add route in index.php with/without slash.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Marked as best answer by frosticek on July 13, 2024, 02:22:33 PM
*

amtylml

  • *
  • 4 posts
Re: 404 error in plugin FAQ
« Reply #2 on: July 11, 2024, 06:10:16 PM »
404 error in plugin FAQ

If you type the website address as "dmain.com/faq/", the plugin works.

But

If you type the website address as "dmain.com/faq", the plugin does not work and gives a 404 wrong address error. Does anyone know how to fix this?

It doesn't work when there is a missing slash "/" at the end of the address.

test :
 plugins.abprofitrade.eu/faq 

 plugins.abprofitrade.eu/faq/

In index.php

osc_add_route('faq-home', 'faq', 'faq/', osc_plugin_folder(__FILE__).'form/home.php', false, 'faq', 'home');

so you can enter with faq and with faq/