Questions tagged [http-status-code-301]
The 301 or Moved Permanently error message is a HTTP standard response code indicating that the requested resource has been assigned a new permanent URI. Future references should use one of the returned URIs.
http-status-code-301
626
questions with no upvoted or accepted answers
7
votes
3
answers
137
views
BHSM-Servlet does not let browser cache username
i have a requirement where a value should not be cached in the server nor the browser as an cookie over domains and sessions.
So i choosed to permanent-redirect to the value
Servlet:
@Override
...
7
votes
1
answer
2k
views
Internet latency: what do PENDING and FROM CACHE mean in Chrome Developer Tools Network tab
I would like to confirm whether I'm understanding this correctly or not. I'm having severe latency issues when I type "google.com" into the Chrome address bar, but not when I do the same thing in ...
5
votes
0
answers
273
views
Caching img src that causes redirect
I would like to have the browser cache the response from a redirect.
I am setting the src attribute on an img tag to a url that is a redirect to the final resource. The redirect is only good for a ...
5
votes
0
answers
2k
views
Using UrlRewriteFilter to get Tomcat to return a 301 redirect from http to https
I'm trying to find out if anyone has succeeded in using the UrlRewriteFilter
availabe from http://tuckey.org/urlrewrite/ to do a 301 permanent redirect from
http to https in Apache Tomcat but I don't ...
4
votes
0
answers
2k
views
Volley 301/302 redirects, use okhttp or modify Volley Library
I am having an issue with Volley and 301/302 redirects, specifically from http -> https. I am making API calls to a server that in the near future will be issuing a 301 redirect when calling http ...
4
votes
0
answers
388
views
Apache Content Negotiation, File Extensions, and Permanent Redirects
Given an Apache 2.x web server that uses Content Negotiation (+MultiViews) to access URLs without their extensions (e.g., allow /foo vs. /foo.php or /foo.html), how does one issue a 301 permanent ...
3
votes
0
answers
772
views
How can we do 301 and 302 redirection with angular and node? Angular app is working as server side rendering app ( angular universal)
I am working on a CMS system with angular as a front-end and .net mvc as a backend for my api's. Angular universal with server side rendering is also implemented.
The issue is i cannot figure out ...
3
votes
0
answers
713
views
Nuxt.js dynamic 301 redirection's with API matching parameters
I'm trying to 301 redirect old links to new one, the structure of old link is:
http://www.example.com/used/details360?rule=11406
The new one should look like this:
http://www.example.com/cars/{make}/...
3
votes
1
answer
529
views
How can I call global.asax on .asp page open
Hi on redirecting of catalogsmain.asp I want to call Global.asax file and in that I want to call Application_BeginRequest method.
Actual I have one old website which is created in old ASP so it ...
3
votes
1
answer
533
views
Htaccess rule giving 301 error
I am trying to change a URL, in my htaccess I have added this line:
RewriteRule ^/about/$ /site/about_us/
After adding this, if I hit my URL http://mydomain.com/about/ it gives me 301 moved ...
3
votes
0
answers
2k
views
301 Redirect in Web.Config not working
I am organising my 301 redirect from the web.config. Quite simply the page concerned 'enquiries/callabck.aspx' is not redirecting to 'enquiries/customer-service.aspx'.
I've looking around for a few ...
3
votes
1
answer
658
views
PHP in a 404 script to 301?
I want to 301 a large amount of old URLs.
Can I do this via PHP in a 404 script, or would this mess up search engine results (them thinking the pages are not found)?
My current .htaccess:
...
2
votes
1
answer
1k
views
Nuxt 3 : How to redirect all 404 to home page with a 301 (SSR)
I am searching how to catch all my 404 pages on my Nuxt 3 project and redirect them using a status code 301 to the home page (using SSR).
2
votes
0
answers
2k
views
Redirect with 301 status code in react js single page application
I've developed a web application in react js and I'm using the client-side routing. I have a few deleted product URLs and I want to redirect users to the product listings URL with HTTP Status code 301 ...
2
votes
0
answers
298
views
cache 301 redirect for a long time
I would like to cache a 301 redirect. Most of the questions are about how to avoid the cache.
I was thinking to add this in php :
$seconds_to_cache = 3600 * 60 * 24 * 1000;
$ts = gmdate("D, d M Y ...