Questions tagged [request-uri]

The Request-URI is a Uniform Resource Identifier to identify the resource upon which the request should be applied.

There are 4 types of options available for the request uri depending on the nature of the request -

  • "*" = request does not apply to a particular resource
  • absoluteURI = when the request is being made to a proxy
  • abs_path = to identify a resource on an origin server or gateway.
  • authority = only used by the CONNECT method
101 questions
2
votes
0 answers

Apache Substitute with LocationMatch-Hit not replaced

I have a Problem with dynamic content-replacements. Apache-Substitude don't replace variables matched by LocationMatch or request-vars like %{REQUEST_URI}. my plan is to proxy a page and replace the base-href-content. href="/" ->…
sha
  • 21
  • 1
2
votes
0 answers

REQUEST_URI rewrite incl. query string

I have a WordPress plug-in and theme that are malforming a URL call to an external css file. I will fix that later, but until then, I need to do a redirect so the css is getting served correctly. REQUEST_URI contains the full path, so why doesn't…
2
votes
0 answers

WordPress - New wp-login URL

I want to change the wp-login.php url. Got most of it working: if(basename($_SERVER['REQUEST_URI']) == 'theadmin'){ include ABSPATH . '/wp-login.php'; exit; } But the form submits to wp-login.php. I don't want to copy the full…
Mitch
  • 73
  • 1
  • 10
2
votes
3 answers

Ubuntu 16.04 - Apache 2.4.18 - Request-URI Too Long

I am trying to save an image from Google Images search result but when I send the image's src in the query string parameter it gives the following error: Request-URI Too Long The requested URL's length exceeds the capacity limit for this…
Kunal Dethe
  • 1,254
  • 1
  • 18
  • 38
2
votes
1 answer

Search results mod rewrite with request uri

I am trying to create a search form for my website with search engine friendly urls. I have the following form code on every page of my website :
Search Here is also my htaccess…
Anas Zine
  • 31
  • 6
2
votes
1 answer

java.lang.IllegalStateException: Could not find @PathVariable

I'm currently working on an existing project (java version: 1.7.0, using Spring MVC framework version: 3.1.4) where we only have located this PathVariable issue in only one URI of an specific controller class, and I would really appreciate if any of…
Hernan A
  • 21
  • 3
2
votes
1 answer

REQUEST_URI set or not set

I have a small bit of sample code to pull in the URI of a page. This page runs on a Linux/Apache installation: $url = ""; if (!isset($_SERVER['REQUEST_URI'])) { echo "request_uri is not set"; $url = "value could not be set, !isset on REQUEST_URI…
itrickski
  • 129
  • 3
  • 15
2
votes
1 answer

get value parameter from url codeigniter

hello I want to ask getting value parameter from url to my controller I set redirecting url from javascript like this, window.location.href = '' + '?lang=' + lg + '&lat=' +lt; and I need to bring…
jboxxpradhana
  • 468
  • 2
  • 6
  • 22
2
votes
3 answers

$_SERVER['REQUEST_URI'] returns full URL instead of path to script

My PHP app is not working because of $_SERVER['REQUEST_URI'] returns the full url to the script instead of a relative path. My environment: Windows 7 64 bit. XAMPP Version 1.8.2 PHP Version 5.4.16 Apache Version Apache/2.4.4 (Win32)…
Ivan
  • 714
  • 1
  • 12
  • 28
2
votes
1 answer

Difficult to alter and separate REQUEST_URI with htaccess

I'm trying to treat a URL with htaccess and %{REQUEST_URI} parameter. I researched a lot, use htaccess.madewithlove.be and a virtual machine to build the rule and test without success. The Request URL is: 1)…
Folley
  • 23
  • 2
2
votes
1 answer

GET Not working because of Hash user.php?#access_token=123

looked high and low for an answer to this and can not find anything. My redirect uri from the Facebook OAuth is returning with a # before the parameters, apparently this is meant to happen, but is now stopping a $_GET request for the access token.…
Peter Bennett
  • 184
  • 1
  • 2
  • 15
1
vote
1 answer

Undefined array key "REQUEST_URI" php warning - MVC does not return query string

I am creating an MVC framework with PHP. I am not able to get the query string. The following code does not return the query string index.php
1
vote
0 answers

First request reaches controller as expected, but running the same request again causes Error: No HTTP resource was (Fixed, root cause unknown)

I've read countless other threads about this particular routing error message, but none seem to pertain to my situation. Here's a dumbed-down version of my code: Request protected override async Task SendAsync(HttpRequestMessage…
1
vote
1 answer

React: How to link values of buttons from a map() function to an API request-URI

I'm new to React and having trouble connecting the values of 6 buttons created with a map() function on an array to 6 categories from an API request. I tried to define a category in the state of the class component but I'm unsure how to make the…
Etwck_380
  • 17
  • 1
  • 5
1
vote
2 answers

REQUEST_URI not matching explicit path and filename

Really stumped, because form and syntax seem fine. RewriteCond for REQUEST_URI is not matching the explicit path and filename. When isolated, RewriteCond for REQUEST_FILENAME matches just fine. I have verified using phpinfo() that REQUEST_URI…
zzzaaabbb
  • 139
  • 1
  • 10