$_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?
- Why do I get the timeout warning?
- What is the best way to customise admin files so they survive future upgrades?
- Verify nonce in REST API?
- Add custom html to last sub-menu item
- Automatic image renaming based on title
- Manipulating post meta in the customizer
- generate unique number when registering a user
- Php custom query function assistance
- How can I manage my multiple wordpress websites from main website?
- How do I deque the default stylesheet?
- User Roles Not Sticking
- Login form in popup
- Replace “WordPress” word in title of Dashboard
- For custom templates, is it better to use `template_include` or `type_template`?
- How to pass external variables to the wp_new_user_notification_email filter?
- Dynamic title in WordPress homepage
- Hi, I wanted to make custom search with multiple fields
- Control Content On Non-Blog Pages
- Search widget will search everything in the site, how to limit to only search gallery name
- How Can I Move Data From Form 1 To Form 2
- How to add custom control to a page?
- Navigation label for page in custom theme
- Auto login from custom registration form
- How to get Related Custom Posts?
- Background image not appearing
- custom post template file not shown, instead all the time 404.php
- custom upload directory only for plugin uploads
- Need help enqueueing webfonts
- Redirect to another page using contact form 7? [closed]
- Is it possible to change the structure of the HTML generated by the_content()? If yes, how? If not, is there a workaround?
- How to define custom links in WordPress
- Display specific Taxonomy Term from Custom Post Type
- Is it advisable to use `add_rewrite_rule()` to serve a custom page?
- Customizing the Widget content markup
- Garbage in uploads folder
- What is the best way to modify Admin Panel on WordPress?
- How to customize shipping region/states on WooCommerce
- How do I create a root link in wordpress to a PDF file?
- Upload a web module (html and JS) to wordpress
- How to remove Customizer’s Section and move Control straight to Panel using Child Theme
- Custom RSS feed – blank page
- Customizing admin look and feel for just one particular type of user
- How to query term_id of a Custom Taxonomy by name
- Different profile page by role
- WordPress menu: How to make www.link.com/#name never contain current_page_item class?
- 2.9 to 3.0: Pros and cons of upgrading?
- query_posts meta_key with current date
- Get custom field value from not-current page
- RSS feed showing deleted post
- Custom page template, not acting as page
- how or where wordress collect unlogged user session
- How to show parent taxonomy using get_the_terms?
- No plugin populate user information in to form
- how to change the url rediction of the woocommerce login page of the flatsome theme for my own in wordpress?
- My list of terms of custom taxonomy displays 7 times
- Customizer options limited to specific user roles?
- Can’t do a src to node modules folder
- Woocommerce – Remove cart button depending product (post) status
- Login CSS style doesn’t load instantly
- Query Posts to display all posts with category “custom field value”
- Trouble getting started in wordpress – my experience isn’t in wordpress.
- How do I display entries in the top menu based on conditions selected in the sidebar menu?
- custom loop issue
- Customizer API and pages
- Bulk product editing in wordpress
- Editing a theme’s templates
- How to delete orphan userdata from array in wp-options
- Custom Style per Post, How to Display Custom-Styled Single post on Homepage?
- Twenty Eleven theme, how to change style to a specific “format”
- Search results load individual post in slide out div
- Background image no more visible in the preview
- I need to make the title of the page dynamic in my custom plugin
- Custom CSS working on home page but not on NEW created PAGE