How to capture URL that points to non-existent page/file?
Lets say users enters a url like www.myserver.com/randomString
, I would like to redirect the page to index.php
, but also capture the "randomString"? I'm aware .htaccess
can do the redirect on file not found, but what abotu the URL capture?