Questions tagged [302-redirect]

302 is the HTTP status code for a temporary redirect.

Filter by
Sorted by
Tagged with
3 votes
1 answer
37 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 ...
  • 163
1 vote
1 answer
47 views

If I buy a domain based on my personal name and redirect it to a blog, will my domain appear when people search for my name?

I have a main webpage that ranks well in a specific city (myprofession+city.com). My problem is that I also want a personal domain (e.g., JohnDoe.com). So I was thinking if it's possible to buy ...
3 votes
1 answer
161 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 ...
1 vote
0 answers
102 views

No cookie is sent in a document request redirecting from another domain

The scenario happens when users placing orders on my site and use a third party payment method. They would go to the third party site and complete the payment (via POST request form submission). If ...
  • 111
1 vote
0 answers
41 views

How to redirect to the latest post/article correctly without impacting SEO?

I'm working on a site that will showcase the latest photos from photographers and there'll be minimum text e.g. description of the photo, location of the photo, etc. The site will deployed using ...
  • 121
2 votes
1 answer
87 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 ...
3 votes
1 answer
61 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 ...
3 votes
2 answers
112 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 ...
2 votes
1 answer
52 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 ...
1 vote
1 answer
18 views

Having issues with Google indexing when using a cookie redirect splash page

I'm currently having issues with a site which is not able to be indexed due to a cookie redirect function that's in place. To summarize; when a user lands on the webpage for the first time they will ...
  • 111
2 votes
1 answer
217 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? ...
  • 141
0 votes
1 answer
28 views

Determine if a site has been hacked (HTTP 203 leads to 301 then 302) [closed]

While trying to visit a site earlier that I've previously accessed without an issue, I was oddly redirected to some spammy dating site. Not wanting to try again, I used wheregoes.com to trace the ...
  • 3
1 vote
2 answers
71 views

How can I do 301 instead of 302 redirects when there are multiple domains sharing the same site hosted in IIS?

I have several domains sharing the same site and use a default.asp as the default file where I test the SERVER_NAME variable and use Response.Redirect to redirect to the home page of the site ...
1 vote
1 answer
72 views

Will it hurt if I redirect the desktop version of URL to AMP pages for mobile

I run a website. For desktop version we have https://example.com/listing/india and corresponding amp pages is https://example.com/amplist/india. When a request comes from mobile, we automatically ...
5 votes
1 answer
92 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 ...
1 vote
1 answer
361 views

Apache, Redirect is not working for substring

Issue In apache, how can I redirect to homepage in case if you will go to exact string, but everything behind this string should be displayed normally, no redirect. Example. http://example.com/...
  • 185
1 vote
0 answers
28 views

What URL will Google index when affiliate URLs first 302 redirect and then have a canonical?

Look please at this setup: There is a main vendor on the main domain, https://example.com. There are different (many) affiliates, having own subdomains, sub1.example.com, sub2.example.com, Affiliate ...
  • 9,639
2 votes
1 answer
84 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 ...
1 vote
1 answer
224 views

Do redirects affect google analytics?

I have a website that redirects in the following manner: https://example.com/drugs/paracetamol.html http://example.com/drugs/new-paracetamol.html - 302 https://example.com/drugs/new-paracetamol.html -...
1 vote
1 answer
37 views

prevent google from picking redirecting page as canonical

If have to urls A = https://a.example/foo and B = https://b.example/bar where I consider A as preferred URL and not B. In fact, all B does is send a 302 redirect to A (and it is rather something like ...
1 vote
0 answers
54 views

How do I create a RewriteCond for when the query string contains "*" or "?"

If query string contains "star symbol" or ? then I need to redirect to other page, how to check in the following condition that thequery string contains "star symbol" or ?. RewriteCond %{QUERY_STRING}...
  • 21
1 vote
1 answer
172 views

Old website still found on google but redirects to new site

We have launched a new website replacing our old one, and Google now finds the new and the old website. Our old website was published under /public, the new one is published under /web: Setup until ...
  • 111
1 vote
1 answer
1k views

Multiple pages under single directory redirection to a single Page

I have the following scenarios for web page redirects 1) All pages under www.oldexamplesite.com/page/product/New-Design/* and All pages under www.oldexamplesite.com/page/product/nature-of-design-...
  • 157
1 vote
2 answers
186 views

How do web servers identify the client's location

Many websites directs the user to specific subdomains or domains based on their location. For example, if a user based in the UK types yahoo.com, the user somehow redirected to uk.yahoo.com. If the ...
3 votes
1 answer
87 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 ...
  • 65
1 vote
1 answer
68 views

is it recommended to change all old 302 redirections to 301?

I have a client which has 302 redirected all the http pages to https pages 4 years ago. Now is it recommended to change all the 302 redirections to 301 or should I keep them the same? Also they have ...
1 vote
1 answer
110 views

lots of 302 redirections google search console excluded URLs

My client 302 redirected all the pages from http to https few years ago. All the http links are accessible in google search console as the excluded links. Should I do anything to get rid of the 302 ...
1 vote
2 answers
2k views

How to fix 302 errors in my Google Search Console?

I have so many 302 error in my Google Search Console. I changed HTTP to HTTPS recently and confusing part in Google Search Console is when I check there's /search.php on the end of every URL. It ...
12 votes
2 answers
45k 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 ...
  • 372
1 vote
1 answer
54 views

Can similar pages with rephrased titles be combined using redirects but still ranking for the different title phrasings?

I'm building a website where each piece of content can have multiple different title/body phrasings which got the same meaning, and each phrasing got its own page (with links connecting to its content ...
0 votes
0 answers
101 views

Googlebot not indexing language subdirectory

I've language based subdirectories, which is changed by user's country. Let's say if user request from Poland example.com 302 redirects to example.com/pl example.com/pl 301 redirects to example.com/...
  • 141
1 vote
0 answers
91 views

SEO: Redirect root to a sub-dir, build new content on root, keep old rankings for redirected sub-dir

I want to move our page from site.example to www.site.example/home but keep the SEO rankings from when that same content resided on the root domain. Then I want to build back up the site.example ...
  • 111
1 vote
1 answer
70 views

dynamics urls - redirects or rewrite and page SERP position

I'm trying to get my head on this, our site have thousands of links, is an e-commerce site, where products titles require changes on regular basis to get the best of SEO... you know, as usual, we ...
  • 158
1 vote
1 answer
183 views

404 or 302 Redirect - what to use for a url which may be used in the future but not available at the moment

My site lists blogs like this example.com/?status=blog&id=number I only have 3 blogs now (id=1, id=2 and id=3). I checked my log files and saw that search bots are manipulating the URLs and ...
  • 211
3 votes
1 answer
438 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="...
0 votes
1 answer
633 views

Should redirecting URLs be included or excluded from the XML sitemap? [duplicate]

Currently, we're working on optimizing a website for search engines. Would you advise adding to the XML sitemap the URLs of the pages that are being redirected, or the redirect target URLs? In my ...
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 ...
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 ...
  • 159
1 vote
1 answer
44 views

What redirection should I use whether I am not sure it is temporary or permanent?

I know that 301 redirection for permanent redirection. 302 for temporary redirects. I want to redirect author pages to BuddyPress profile pages in WordPress. I am not sure that it will be permanent. ...
1 vote
1 answer
550 views

.htaccess to force SSL and also rewrite such that the content is served from a sub-folder

The issue is how to do two things: force SSL on all requests, and redirect the domain to the public_html/somefolder - where the site/domain content lives. The recommendation from the hosting place (...
2 votes
1 answer
395 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 ...
1 vote
1 answer
458 views

Which is longer cached by SE robots or browsers, redirect 301 or 302

I have looked on Stack Exchange but didn't find the solution for my problem. The problem: I have a website and want to become an SEO hero. So, I also need to choose status codes... I know that there ...
2 votes
1 answer
244 views

Under construction page bad for SEO?

For our customer we need to develop a brand new website which will replace the current one. He wants to remove the current 'ugly' site completely and show an underconstruction page untill the new ...
  • 269
8 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 ...
2 votes
0 answers
126 views

Mobile version of a website showing up on my desktop google search

I search certain keywords in desktop google search and mobile version of my website shows up, vise versa. I use some methods to solve this problem: use <link rel="alternate"> and <link rel="...
  • 107
1 vote
0 answers
645 views

Using Redirect 301/302 vs URL shortening service

I'm currently developing an aggregator site that will gather information across many many sites, typically this kind of applications put together relevant topics and display different information from ...
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,...
  • 81
3 votes
1 answer
64 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 ...
0 votes
0 answers
155 views

Search Console Fetch Not Found and Redirect

When fetching a URL in Search Console i get 3 results; success, redirect and not found. Can I ignore the redirect warnings or is Google telling me there is a problem? The not found pages; I can not ...
  • 1,177
1 vote
1 answer
39 views

How can I host a website on another domain without sacrificing SEO?

I have a domain bought at Godaddy, but I do not have a hosting service there. Rather, I have a subdomain on another site that I control, and forward it using a 302 temporary redirect. However, I have ...