Take a look at the $_SERVER superglobal. It contains all the information you’ll need about the current request, to reconstruct it.
echo '<pre>';
print_r($_SERVER);
echo '</pre>';
More Related Contents:
- Website is very slow, but if I modify the URL it loads normally
- URL Redirect / URL Masking [closed]
- URL rewriting with PHP
- Get the full URL in PHP
- PHP validation/regex for URL
- Passing base64 encoded strings in URL
- GET URL parameter in PHP
- Replace URLs in text with HTML links
- Passing arrays as url parameter
- Remove all special characters from a string [duplicate]
- Get URL query string parameters
- How to pass extra variables in URL with WordPress
- Get Last Part of URL PHP
- Sanitizing strings to make them URL and filename safe?
- PHP Get Site URL Protocol – http vs https
- Get file content from URL?
- Apache rewrite – get original URL in PHP
- Proper URL forming with a query string and an anchor hashtag
- Manipulate a url string by adding GET parameters
- PHP Application URL Routing
- http_build_query with same name parameters
- What is the “?” symbol in URL used for in php?
- Check if URL has certain string with PHP
- %2F in URL breaks and does not reference to the .php file required [duplicate]
- Parsing URL query in PHP [duplicate]
- What does the dot-slash do to PHP include calls?
- PHP – Convert File system path to URL
- getting the full url including the query string after hash
- Extract URL’s from a string using PHP [duplicate]
- Pretty URLs without mod_rewrite, without .htaccess