Skip to main content

All Questions

0 votes
0 answers
77 views

How does HTTP redirect work with HTTP methods?

I read the HTTP response status code, location and MDN documentation, what I could understand was that: Permanent: 301: Permanent redirect Accepted request method: All HTTP methods Recommended ...
Grizzly's user avatar
  • 385
0 votes
1 answer
99 views

How prevent performance loss from 301 redirection between non-www to www URL?

I have a website which redirect non-www URL to the www version in order to optimize the SEO. However this impact user performance because the non-www request/answer to the server took 500ms after what ...
Michael Linhardt's user avatar
0 votes
1 answer
2k views

Why is Azure APIM redirecting to the backend service URL?

Calls to APIM have suddenly started redirecting to the backend service. In my test environments, I get a 301 Moved Permanently, whereas for the exact same code deployed to prod, I just get a 200. Why ...
David Klempfner's user avatar
0 votes
0 answers
36 views

Permanent redirection keeps hitting effective URL everytime

I have created two Rest API's in the backend (same webservice), one for the effective URL and other for the Redirected URL. I'm doing a 308 redirection here when user hits effective URL. Scenario's ...
Manikandan kk's user avatar
0 votes
1 answer
186 views

This code returns 301 permanently moved while the same script worked properly

this is part of java script to collect some data in .xls file from a website (https://web.expasy.org/protparam/). The website has a box in which we put some character, then it computes and redirects ...
Vijay Kumar Garg's user avatar
1 vote
0 answers
117 views

Why is the 'Host' header set to incorrect value upon receiving a 301 status response

I am facing an issue while using the Apache components client 4.5.5. My use case is as follows: Http-client is configured to connect to http-server1 with host1 and port 8888. Both the http-client and ...
kritika's user avatar
  • 11
0 votes
1 answer
31 views

Is it safe to assume that a page is redirecting if a "Location" header is received?

I'm creating a JavaScript function to follow redirects using Node.JS's native HTTPS module. Is it safe to assume if there is a "Location" header that the page is redirecting, or should I also be ...
broment's user avatar
  • 76
1 vote
1 answer
3k views

nginx serve index file from subfolders

I would like to serve an index file from a root folder and one from a subfolder from root. My nginx server conf looks as follows: server { listen 80; server_name localhost; root /...
user1981275's user avatar
  • 13.2k
2 votes
1 answer
3k views

How not to loose referer value on 301 https redirects in Cloudflare Workers

Am trying to pass Ref(f)erer via 301 redirect from HTTPS domainA to HTTPS domainB using cloudflare workers. 1) User enters https://domainA.com in a browsers address field, such request headers are ...
toinbis's user avatar
  • 757
-3 votes
1 answer
409 views

When using telnet get request on the website weer.nl - I get a 301 error that I can't fix

Link to photo of terminal I am trying to get the header of from the webpage www.weer.nl. However it only returns a 301 Moved Permanently error and does not print any header to terminal. How can I ...
dragonslayer7's user avatar
0 votes
1 answer
117 views

Should I use http or https for tracking links?

I want to build a service that helps people tracking their links. Visitors click on my link url.com/123, they will be redirected to the destination website as below: Visitors in site A --> url.com/...
Alex's user avatar
  • 11
2 votes
1 answer
871 views

Angular 5 not handling 301 responses properly in firefox

I am building this web application in Angular that communicates with a REST api. Sometimes, when the front end requests some data via GET to a certain url, the server does not return a 200 OK ...
Kilian Perdomo Curbelo's user avatar
1 vote
0 answers
30 views

HTTP to HTTPS redirect using .htaccess file not working

RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] ErrorDocument 404 https://whatmovieshouldiwatchtoday.com/error404.php php_flag display_errors ...
sdad's user avatar
  • 55
1 vote
2 answers
773 views

Netlify: can I have a 301 redirect with custom HTTP headers?

Using Netlify, can I add custom HTTP headers to a path on one domain but not another? e.g. if I wanted my-domain.com to return a 301 with headers different to the headers returned by www.my-domain....
Mike's user avatar
  • 9,792
0 votes
0 answers
25 views

index.php to root in htaccess

What does this mean? I am trying to remove index.php from the URL and point to root. For example, https://www.example.com/index.php redirect to https://www.example.com/ The below solution works ...
Saranya Thirumeni's user avatar

15 30 50 per page
1
2 3 4 5