The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Own 404 error page
#1
If a site is not in the DB, is it possible to redirect to an own 404 error page, wich looks and feel like the original page?
  Reply
#2
Hi @Kighlander,

Please check the documentation in the link bellow:
http://userspice.org/documentation-redirect-class/

In the video is explained exactly what you want.

For the look and feel, you just need to use header/footer, etc.

PS: I'm not from the UserSpice team, I'm just trying to help. Smile

Regards,
Rukichirimoshi
  Reply
#3
Hi Ruki...

I already saw this Video, but there was createt an own 404 Redirect error. (He put it in the method to call the redirect-function).
But if a NOT EXISTING page is called from any user, I want to redirect to an own errorpage with same template... Have I use .htaccess for that or is it possible to create it with UserSpice ?

Regards,
Kighlander
  Reply
#4
Yeah. The only way to do what you want is with .htaccess. I agree that should probably be a feature though. I will add that to the list.

http://www.thesitewizard.com/archive/custom404.shtml

Thanks @rukichirimoshi for jumping in. Feel free to do that at any time.
  Reply
#5
Ok, thanks a lot 4 the link.
Now I feel good to start my project with UserSpice...
If there are any problems, I will report it here... somewhere.... Big Grin
  Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)