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
0
votes
0 answers

nginx dynamic proxy_pass with variable location

i want to setup a dynamic proxy pass. If i enter for example https://sub.mydomain.com/33544 then i want that the proxy pass to https://10.10.10.10/33544. So the only thing that change is the $request_uri. So how must i config the location block…
zickes
  • 21
  • 3
0
votes
1 answer

Some PC has error is Failed to load resource: the server responded with a status of 414 (Request-URI Too Long)

In my team some PC has this error and some PC has not this error MVC version 5.2.2.0 jQuery Validation Plugin 1.9.0 Error from Chrome I tried with IE and Firefox and error sill happen. Please help me! Thanks
0
votes
5 answers

Why $_SERVER['REQUEST_URI' NOT working with IF condition

My webpage url is http://example.com/blog/ When I echo it is showing the correct result as blog. echo $_SERVER['REQUEST_URI'] >>blog But, when I use in if condition it doesn't…
Prime
  • 3,530
  • 5
  • 28
  • 47
0
votes
0 answers

redirect page based on country and context path

If the request_uri is starting with "^/country/location/London/" then any thing after "/country/location/London/(.*)" should redirect to "/$1" and fetch the data from back-end for "/country/location/London/$1" Tried some rules as…
viki
  • 91
  • 1
  • 1
  • 6
0
votes
1 answer

REQUEST_URI redirect issue

RewriteEngine On RewriteCond %{REQUEST_URI} team RewriteRule ^ http://sitename.co.uk/about? [L,R=301] The code above works perfectly if the url is /team/ BUT if the URL is /team/john-smith/ I do not get redirected? I can't figure out why this…
Damian Smith
  • 85
  • 1
  • 2
  • 12
0
votes
1 answer

Detect requstURI dynamically + ASP.NET Core

I'm using web.config to set up some rediretion rules using .Net Core. ... So if the…
bbusdriver
  • 1,577
  • 3
  • 26
  • 58
0
votes
1 answer

passing image to kendo popup window [Request Uri too long 414]

My web page has kendo grid loaded with images and a "Graph Map" button. When we click "Graph Map" button, another window pops up which would display the image in first record of grid, and then on "Next"/"Prev" button clicks we can move to the…
Samra
  • 1,815
  • 4
  • 35
  • 71
0
votes
1 answer

$_SERVER['REQUEST_URI'] would return number instead of $_GET value when stored in $_SESSION

I have the following code in first page: $_SESSION['redirect_address'] = $_SERVER['REQUEST_URI']; when I call $_SESSION['redirect_address'] in the next page it gives me something like this: /host/example.php?1508270070 while it must give me…
Mostafa
  • 111
  • 2
  • 12
0
votes
1 answer

how to map nginx $request_uri parts into variables

i found in this question who to map the first directory of $request_uri into a nginx variable. I need to do it whit 2 directories and one file: localhost:80/dir1/dir2/file.html map to localhost:80/$topdir/$secondir/$file i do: map $request_uri…
ramapunk
  • 35
  • 6
0
votes
0 answers

I have php-script and second php-script called in

I have php-script and second php-script called in. www.foo.bar/cat/opop.php www.foo.bar/fb.php on page /cat/opop.php there is a button and he is called other php script /fb.php in /fb.php me need use track uri but it should give this link…
0
votes
3 answers

About URL that doesn't really exist

How can I create a URL that doesn't really exist? For example, https://twitter.com/i/notifications - works. When you remove the /notifications from the link you get https://twitter.com/i/ - Does not work. but this URL /i/ doesn't really exist. How…
BN247
  • 11
  • 2
0
votes
1 answer

How can be fixed an error of PHPUnit when other local address (then - http://localhost) is used

My app starts locally by http : //sm1/app/web/app_dev.php (symfony3). PHPUnit test has been build by framework. namespace Tests\AppBundle\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class GoodControllerTest extends…
sergmoro1
  • 11
  • 2
0
votes
1 answer

Previous page wordpress function

I need to write a function in WordPress. I would like to function to work on this principle: - Checking function if the user is logged, - Checking whether I am currently on the "my-account" - And what i need (Previous page is the "checkout"…
0
votes
1 answer

How to Change $request_uri to first original, Nginx

Example: -Step 1. Example Client request: http://domain/123 => (so now in Nginx: $request_uri original == /123) -Step 2. If i config nginx redirect or something like that http://domain/123 to http://domain/456 => ($request_uri in Nginx will change:…
ncc
  • 23
  • 7
0
votes
1 answer

How can i validate email confirmation token?

In my asp.net mvc application, when a user registers, I send a email to their account with a link for validation before they can use the app. See code snippet below. var emailActionLink = Url.Action("ValidateAccount", "Register", …