Questions tagged [302-redirect]

302 is the HTTP status code for a temporary redirect.

Filter by
Sorted by
Tagged with
29 votes
2 answers
2k views

Quantcast http://pixel.quantserve.com/pixel request 302 redirects to Facebook and other ad networks

I just spent a few hours investigating what I thought might be a malicious Chrome extension (using developer tool to audit them, highly recommended!), an ISP/DNS injection issue, or a malware ...
Greg Bray's user avatar
  • 583
12 votes
2 answers
48k views

What causes "redirect notice" in Google search?

Occasionally, I get "Redirect Notice" pages when I click on some Google search results. My website does have a landing page redirect, but no redirect notice shows up when I click on it in Google ...
clickbait's user avatar
  • 382
9 votes
1 answer
2k views

Should I use 301 or 302 for location-based redirects?

I'm setting up geo-redirects for my site and am unsure which redirect type to use. I've read many articles on this subject, but still do not have a clear answer. Here's the plan: Visitor lands on ...
Brian Kidwell's user avatar
8 votes
10 answers
3k views

Is there a safe way to redirect traffic from a dozen old websites to a new (unrelated) website?

Over the years I've built over a dozen unsuccessful sites. They get 10-100 visitors per day each. The topics include all kinds of random things - recipes, hiking tips, military equipment, gym bloopers,...
Josh W.'s user avatar
  • 81
8 votes
3 answers
2k views

When redirecting from http to https in a shop site, which status code should I use?

On a shop website, when "Pay now" is clicked we perform a header redirection to the same URL, just an SSL secured https version. In such a common scenario, should we use a permanent (301), a ...
Olaf's user avatar
  • 324
6 votes
1 answer
3k views

How to do a cacheable redirection?

When users enter my website example.com, their "preferred" language is detected and they are redirected (using a 301 Moved Permanently redirection) to example.com/en/ (for English), example.com/it/ (...
federico-t's user avatar
6 votes
2 answers
1k views

Is a masked 307 redirect for a domain possible?

I've been asked to create a 307 redirect for a domain, ensuring it is "masked". i.e. keep the original URL in the address bar. There isn't a lot of info available about 307 (as opposed to 301/302) ...
Rob's user avatar
  • 163
6 votes
1 answer
2k views

Redirect from the main page on multilanguage site

I've decided to start developing multilingual web site. Now I'm thinking about the structure. The idea is to use a simple algorithm to find out what language is most interesting to the visitor when he ...
Pluto's user avatar
  • 61
6 votes
2 answers
2k views

302 Redirect causes garbage at end of Wordpress link in Facebook

When I try to link my Wordpress blog to Facebook, the url doesn't resolve properly. There's garbage appended at the end and Facebook is not able to retrieve information from the site. Happens in ...
Joao Coelho's user avatar
5 votes
2 answers
9k views

What’s up with this 302 redirect to the same URL?

I was scanning my website for links that point to HTTP 301/302/303 redirects when I found a puzzling behavior of the curl utility. Consider the output from the following three commands: $ curl -I ...
bdesham's user avatar
  • 476
5 votes
2 answers
1k views

302 & 503 for temporary site down page: what to use for 'retry-after'?

If I want to temporary take down a website but the timeframe could be from 1 day to 1-2 weeks, I know that a 302 redirect (to a down.html page for instance) is best in order to preserve the existing ...
Miak's user avatar
  • 173
5 votes
1 answer
106 views

Is it good to go live with 302 first and then change it to 301 if everything works perfect

I am in the process of removing duplicate content (or URLs) issue on my website. There are hundreds of similar content links on my website where both URLs one without trailing slash and one with ...
Vineet Sajwan's user avatar
5 votes
1 answer
2k views

301 or 302 redirect for mobile/non-mobile pages

I'm setting up redirection for mobile/non-mobile pages. User agent is detected and redirected appropriately, but the ?mobile=1 or ?mobile=0 flag can be used to force a switch. When that flag is used,...
Explosion Pills's user avatar
5 votes
2 answers
85 views

301 or 302 Redirect for regularly changing subsites

We have a site https://example.org/forecast/ that at the time of writing redirects to a "time-stamped" (/forecast/month-year/) URL, like so: https://example.org/forecast/june-2022/. Say, in ...
jfix's user avatar
  • 185
4 votes
2 answers
448 views

non-cachable Canonical redirect of www to non-www

I know this question is debatable for the whole eternity, and most likely nobody knows the real philosophy of this problem. But I'm trying to solve the problem about 301 and 302 response headers in ...
Frondor's user avatar
  • 224
4 votes
1 answer
155 views

302 or 301 redirect in case where redirect lasts 1-2 months

I have a case where I have a newly built "author site" (promotes the author in general as a speaker and author) which needs to temporarily redirect traffic from the author's "book site" (focuses on ...
Matt Helmick's user avatar
4 votes
2 answers
280 views

How do sites avoid SEO issues and legalities with subdomain unique ids?

I was looking through a few websites recently and noticed a trend I am not sure I understand. Sites are creating unique referral URLs for customers in the form of: http://customname.example.com (If ...
JM4's user avatar
  • 313
3 votes
2 answers
1k views

How bad is it for SEO to use at 302 redirection instead of 301 redirection for HTTPS?

Recently my client has configured HTTPS. I recommended that he implement 301 redirection to 200. His developer could not do that and it is still using 302 redirects. How bad it can affect a website ...
Rajat's user avatar
  • 159
3 votes
1 answer
330 views

302 response code isn't causing redirect

I'm looking at a page where the server is returning response code 302, and the URL pointed towards is the exact same. In other words, it's redirecting towards itself. The page does not redirect, nor ...
Aromefraise's user avatar
3 votes
2 answers
1k views

Google and 301/302

we have to solve a problem with Google not correctly indexing our multilanguage sites. We'll redesign our URLs in the future but until then we need some way to help Google find the different language ...
Thomas's user avatar
  • 131
3 votes
2 answers
145 views

Should I use 302 redirect when user's browser is out of date?

I want to show the following popup if the user browser is outdated: I check the client browser and return a 302 redirect to MySite/ErrorPages/OutdatedBrowser page if their browser is too old. I am ...
Hooman Bahreini's user avatar
3 votes
1 answer
105 views

SEO. Redirecting a website to my own website

I manage a website www.example.com. I have found another website called www.2.example. I want to talk and merge it with my own completely, so when people enter www.2.example they will end up on the ...
ClawDuda's user avatar
  • 1,177
3 votes
1 answer
41 views

302 or 301 Redirect for This Scenario?

I have a client who had an existing page on their site - example.com/page1. They have had me create another page that covers similar material, but matches some other branding and messaging that they ...
JasCav's user avatar
  • 163
3 votes
1 answer
306 views

Is there a way to set up a redirect in htaccess to convert a folder/paths to a params

After trawling through posts I have this RewriteCond %{HTTP_HOST} ^example.software$ RewriteRule ^downloads$ https://example.software\?mode\=downloads&%{QUERY_STRING} [R=302,L] This works fine ...
Rohit Gupta's user avatar
  • 2,241
3 votes
2 answers
214 views

"Page With Redirect" issue for index document

I use the Pelican static site generator with Attila which automatically creates a page for each of my site's categories (/categories.html). The default configuration for Attila created category URLs - ...
John Sobanski's user avatar
3 votes
1 answer
2k views

Is it good SEO to 302 redirect from root URL to language and region subdirectory for the user, then tell Google about altenate sites in the sitemap?

We use subdirectories on a global top level domain for a multi-regional site: When a user from Iran enters www.exmple.com it 302 redirects to www.example.com/fa-IR. When user enter from the US enters ...
user82135's user avatar
3 votes
1 answer
904 views

Trying to add cache header to 301 pages made by ModRewrite

I have several URLs on my website that get redirected to other URLs using Mod-Rewrite. For example: RewriteRule ^section$ /newsection [NC,L,R=301] The above rule redirects http://example.com/section ...
Mike -- No longer here's user avatar
3 votes
1 answer
218 views

Finding websites that do a 301/302 redirect to a specific website

Is there a way to find out if a website is receiving redirects from other websites? Please note that I'm not asking about incoming links, but an actual redirect. I don't care how complicated the ...
sameold's user avatar
  • 183
3 votes
1 answer
226 views

IIS7 rewrite rule triggers 404 rather than redirecting to new pagw

We recently replaced most of our default pages from default.htm to default.asp. Rewrite rules work fine if it's a sub-folder, e.g. example.com/help/default.asp where the default.htm was deleted. If ...
SKidd's user avatar
  • 35
3 votes
1 answer
451 views

Will Google rankings improve if I use a meta-refresh in a second rather than an immediate 302 redirect?

Will the Google ranking of my page increase when I use a meta refresh with a timer of 2 seconds instead of a 302 redirect without a timer? I'm using this code: <meta http-equiv="refresh" content="...
Jonas Amsamoto's user avatar
3 votes
1 answer
65 views

Ending a 302 redirect and its effect on Pagerank

Please imagine the following scenario: abc.com → 302 (temporary) redirect to def.com After 6 months, we no longer use def.com, so discard the domain and we buy a new domain xyz.com. We then do a 302 ...
Sharline Sivanathan's user avatar
3 votes
2 answers
57 views

Should we have two copies of the same content or do a redirect?

We are a web app for icons and we've got 2 versions of our app: Old one with icon URLs like http://icons8.com/icons/#!/73/home New one with icon URLs like http://icons8.com/web-app/73/Home Both ...
Ivan Braun's user avatar
3 votes
1 answer
123 views

Session based redirect acceptable for search engines?

We have added a subsite (/usa) to an established global website. This subfolder has been made region specific to USA using google webmaster tools. Now we want visitors from USA to be automatically ...
Thangaraj's user avatar
3 votes
1 answer
67 views

Will a domain(Y) redirected to a maindomain.com/product/ be indexed by SE?

We have several domains with the names of products we sell. The idea is to create mini sites in the future that specialize just in those products, mainly for better placement on SE results pages. As ...
riseagainst's user avatar
  • 2,222
3 votes
1 answer
851 views

Can I use a 302 redirect to serve up static content from an URL with escaped_fragment?

We would like to serve up SEO-friendly Ajax-driven content. We are following this documentation. Has anyone ever tried to write a 302 redirect into the .htaccess file, that takes the ?...
Starfs's user avatar
  • 303
2 votes
2 answers
1k views

301 vs 302 redirect for ?url=URL

I have the following URL for affiliates: http://www.mydomain.com/affiliates/partners/partnerName.do?url=http://www.mydomain.com/product/3 The value of url will change all the time. For this, I have ...
Bradford's user avatar
  • 123
2 votes
2 answers
1k views

X-Robots-Tag: noindex on an HTTP 302 response to remove subdomain

This very related to this question "X-Robots-Tag: noindex" on an HTTP 301 response, however I don't see a definitive answer. We have subdomains we use for our affiliate links, the ...
Max's user avatar
  • 6,127
2 votes
2 answers
917 views

Want to redirect a domain to a new domain using 301 or 302?

Firstly, I want to redirect an old domain to a new domain, (old site to new site). The old site has good ranking on Google, now if I redirect the site, I want to retain this site on the Google ...
user3636420's user avatar
2 votes
2 answers
1k views

How to redirect a single web page other than using htaccess

I'd like to redirect a single web page, it will be a temporary redirect so I don't want it to affect SEO rankings. So I was thinking of using a method other than htaccess, but if it would be more ...
user3636420's user avatar
2 votes
1 answer
512 views

Why is this .htaccess evaluating to 302 redirect instead of internal rewrite?

As an example, I was expecting this https://example.software/credits to evaluate to an internal rewrite https://example.software?mode=credits Why is it showing up on the browser url-bar as a 302 ...
Rohit Gupta's user avatar
  • 2,241
2 votes
2 answers
2k views

Hacked Sites duplicating website & Google seeing wrong cache

Noticed a severe drop in organic rankings and traffic, after investigating what might have been the cause we have found 3 websites that have duplicated the site within their domains. When you click on ...
Max's user avatar
  • 6,127
2 votes
2 answers
1k views

wrong duplicate meta descriptions on webmaster tools

We have recently moved our site to a new platform with a different structure. We placed the correct 301 redirects from old pages, but also, some pages include 302 redirects for language-specific ...
Yoav Aner's user avatar
  • 165
2 votes
2 answers
274 views

SEO and unique IDs in URLs

I have a web site at: http://example.com when a new user first hits the web site I am creating a unique ID of 5 characters for them (for example abcde) and redirecting them to http://example.com/...
kokoko's user avatar
  • 23
2 votes
1 answer
416 views

Which HTTP response status code is most appropriate for a restricted URL?

I have a page on my website that's targeted at logged-in users only. Logged-out visitors shouldn't see the content. Imagine the page URL is example.com/upload/. In cases when users aren't ...
henrywright's user avatar
2 votes
2 answers
239 views

Google Webmaster Tools don't find sitemap.xml

I have a domain which I use in combination with GitHub Pages for my homepage. I have a sitemap.xml, which I submitted to Google Webmaster Tools. Unfortunately I get this error message: Redirection ...
Yanick Nedderhoff's user avatar
2 votes
1 answer
257 views

If a 302 redirect is implemented, would the old site still be indexed?

If a 302 redirect is implemented, would the old site still be indexed? I’m assuming as the redirect is in place, a user would not see the contact on the old page hence search/crawl bots would not be ...
user3636420's user avatar
2 votes
1 answer
194 views

How long before legacy 302s are recognised as 301s?

We have some legacy 302 redirects in place on our site that should have always been 301s. We've now changed the redirects to 301s but various SEO tools (and presumably Google) still see the 302 ...
Willl's user avatar
  • 163
2 votes
1 answer
83 views

Is 301 or 302 used for country forwarding?

I want to make country redirects for my site and I am not sure which redirect type is used. Step 1: First, we enter our website. Step 1 URL: https://example.com Step 2: Our website directs us to ...
ardacarofficial's user avatar
2 votes
1 answer
484 views

redirecting from www url to non-www url in Google Firebase static hosting

I am using Google Firebase static hosting. When a user types and enters www.example.com, I want the address to change to example.com and show the user content of example.com. How can this be achieved? ...
O. Altun's user avatar
  • 141
2 votes
1 answer
112 views

Is 302 redirect before 500 a bad practice from SEO perspective?

I want to display 500 error information to the end-user For instance, it should happen when I request a page https://website.net/crashedPage There are 2 options: Option 1 Perform redirect to the page ...
Yauheni Zmitrovich's user avatar