skip to Main Content

404 page with requesting url in php

I'm handling 404 error as follows - // in .htaccess ErrorDocument 404 /404.php It works nicely. But I would like to display the original URL he requesting. I am trying the following in my 404.php - echo $_SERVER['REQUEST_URI']; //but it…

VIEW QUESTION

Jetty 11.0.11 – 404 on html file in srcmainwebappstatic – maven embedded fat jar

I have a file in my Netbeans 14 Jetty 11.0.11 project at srcmainwebappstaticindex.html that I want to serve to web-browsers using Jetty. Here is my pom.xml: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>verishare</groupId> <artifactId>verdi</artifactId> <version>12-JDK17</version> <packaging>jar</packaging> <name>verdi</name> <url>http://maven.apache.org</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>…

VIEW QUESTION
Back To Top
Search