Answer the question
In order to leave comments, you need to log in
302 redirect using js, how?
You need to redirect from the main page to the internal page
C www.site.com
to
www.site.com/page.html
PS. No access to htaccess file
Thanks in advance
Answer the question
In order to leave comments, you need to log in
response headers are sent by the server.
on js, you can only redirect to another page, but you can’t put a 302 status in any way.location.href = "http(s)://www.site.com/page.html"
window.location.replace("http://www.site.com/page.html");
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question