$_SERVER['REQUEST_URI']
is your only option. wordpress failed parsing the url so not much you can get from the API
Related Posts:
- How to Change 404 page title
- How to build custom WP admin with custom URLs
- Adding Custom Link anchors in the top menu that points to specific sections of the site home page
- Create subpage /user/ or /my-profile/ like /author/ with additional query like /user/user123
- How to change URL Custom Page?
- Passing page url into a custom field via the Press-This bookmarklet
- Add filename to attachment page url
- add_rewrite_rule won’t work
- How can I get the page url slug when ‘post_name’ returns an id?
- Creating Search Engine Friendly URL’s with Word Press
- How do I fix unexpected redirection of visitors after enabling multisite on WP3?
- Custom URL going to 404
- How to change the category url jusy show /category/%category_id% in wordpress?
- change url for static files in /wp-admin with a cdn url
- Many Rewrite Parameters/Rules
- 404 when Previewing an unsaved draft
- title tag function
- query variables for custom taxonomies
- New to WP: links on static homepage are not working
- I want to change url structure of my created archieve pages
- URL issue after setting up Custom Structure in Settings >> Permalinks
- How to assign a default/priority taxonomy to be shown in url in case two taxonomy items are selected
- Replace an URL with an new URL which has a “?” in it
- Page Permalinks: Custom URLs
- Call a duplicate registration form with other url
- Pass query param to custom page
- How do I fix the url when clicking on portfolio item?
- Replace featured image when shortcode is present
- WP_User_Query Search Multiple Keywords from a Multi-Select Field?
- How can I setup a development environment which auto refresh page when code have changed [closed]
- Client viewing before deployment
- Can I upload my self hosted WordPress website on GitHub as a project? [closed]
- Advice on how to structure a custom plugin
- Custom query pagination with php parameter as arg problem
- Need to replace some text string on a title
- Problems with setting up a subdomain to serve images and scripts
- How can I delete the word `Category:` from page titles? [duplicate]
- Custom roles and capabilities media not work right
- How can I add category variable inside posts?
- Password Protection issue
- Add a custom intro page
- How to have different background image based on post category
- Why does a custom php code inside a custom template not get executed?
- How to have differents sites share the same tables of DB?
- How to add particular attribute of product in shop as well as home page
- How replace theme styles?
- Template for displaying CPT / Taxonomy URL issues
- Login CSS style doesn’t load instantly
- Javascript Tooltip not fully working on my wordpress page
- How to use the same custom page template to iframe multiple urls with entry of new url entered from backend
- Add a menu item to admin dashboard which isn’t a link? [duplicate]
- POST 429 Error when trying to place more than 20 images into post at once
- Delete page titles
- Adding more than one WordPress Gutenburg block type?
- How to add a full working piece of website already coded, to a large scale Website design project?
- Issue with navigation bar in child theme
- Creating a WP Test site without /uploads etc
- Add button to My Sites dashboard page (multisite)?
- Custom Route Returns 301/Passing Variable from Input
- Floating CTA Image Integration
- Woocommerce dependent attributes
- Cannot go to next page on phone but can on computer
- How Can I add show_post_count in get_archives_link?
- Trouble with custom login page
- I want to use a product thumbnail completely different than the product image
- clickable toggle menu, help
- How can I edit the WordPress menu link to allow fb: instead of http
- Fixed bottom menu on mobile doesn’t work on search included in Child Theme of Storefront
- Perform javascript when an input in Customizer is selected/focused?
- Create page when a new site in multisite network is created?
- Change meta-box title- “LearnDash Quiz Settings” to “Quiz Settings”
- Change Dashboard menu position?
- Get site ID from attachment url?
- Change login cookie expiration time?
- Disable “-mp4-image” screenshots from appearing in Media?
- Figuring out how to create “Option Pages” in WordPress admin
- Including a Customized Initialize File with a wordpress header
- Removing fields and buttons from admin dashboard?
- how to edit or remove the dashboard footer message [duplicate]
- wordpress custom posts page not showing
- How to change custom link of subpages from of localhost to website
- Wrap WordPress Login Form in custom Div
- Link to a new page into a plugin
- Automatically reject a comment if website field contains anything
- How to fix custom add menu page preventing media library from loading
- How to create custom post type selection to nav menu
- Duplicate Header and Footer
- Unhook a function within a class in the child theme
- Custom permalink structure for posts in certain categories
- Remove distraction free mode from teeny editor
- Send email notification when post type product is publish from pending status
- How to add rewrite rule for product compare page?
- Saving of Draft is failing
- How to narrow the area between buttons on Helium theme sidebar? [closed]
- Where to put coding a validation script for store? [duplicate]
- Custom Avatars for WordPress Comments VIA Website URL?
- Should disabling a plugin that has been customized by a developer crash the site?
- Embedded Options in a Custom Metabox
- Param causing 404
- How to add the option to choose between sizes for featured image within post editor?