Questions tagged [302-redirect]

302 is the HTTP status code for a temporary redirect.

Filter by
Sorted by
Tagged with
1 vote
0 answers
23 views

SEO / Redirect from category to unique product in it

I am working on an e-commerce website with a category page for each model in stock. The category page let the visitor compare the main characteristics of products before accessing more details on the ...
OuzoPower's user avatar
  • 327
1 vote
1 answer
79 views

Why is my server 302-redirecting Lighthouse away from my robots.txt file, but not when I visit it with a web browser?

This is my robots.txt file: User-agent: * Disallow: /user/ Disallow: /user/* Disallow: /home/* Disallow: /adminpanel/* Disallow: /Valorant_Guess/* Disallow: /Leagueoflegends_Guess/* Disallow: /...
szocel's user avatar
  • 41
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
1 vote
1 answer
41 views

Best way to handle link for login-protected pages

I have a e-learning website with free and paid courses. On my course page, there is link to the lessons. If it is a paid course, when you click on the link you are redirected to the shop. See this ...
WatchdogReset's user avatar
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
2 votes
2 answers
43 views

Renaming subdomain and keeping traffic

I would like to use a reverse proxy (NGINX) to redirect traffic from let's call it SUBDOMAIN1.example.com/EXAMPLEPAGE to SUBDOMAIN2.example.com/EXAMPLEPAGE Currently, I rank position 1-2 for most ...
Nassocci'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
1 vote
1 answer
50 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 ...
Comunidad Etéreo's user avatar
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
1 vote
0 answers
276 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 ...
Aero Wang's user avatar
  • 111
1 vote
0 answers
44 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 ...
Motivated's user avatar
  • 121
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
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
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
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
1 vote
1 answer
74 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 ...
Adam's user avatar
  • 111
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
0 votes
1 answer
37 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 ...
ECF's user avatar
  • 3
1 vote
2 answers
227 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 ...
user1780087's user avatar
1 vote
1 answer
117 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 ...
user3249518's user avatar
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
1 vote
1 answer
511 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/...
genderbee's user avatar
  • 185
1 vote
0 answers
29 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 ...
Evgeniy's user avatar
  • 10.1k
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
1 vote
1 answer
352 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 -...
Imran Azad's user avatar
1 vote
1 answer
86 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 ...
Hagen von Eitzen's user avatar
1 vote
0 answers
166 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}...
Raju's user avatar
  • 21
1 vote
1 answer
251 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 ...
sudoremo's user avatar
  • 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-...
Zama Ques's user avatar
  • 157
1 vote
2 answers
266 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 ...
user9371654's user avatar
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
1 vote
1 answer
75 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 ...
Maryam Beheshti's user avatar
1 vote
1 answer
151 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 ...
Maryam Beheshti's user avatar
1 vote
2 answers
3k 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 ...
MerryFisher's user avatar
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
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 ...
Nimrod Yonatan Ben-Nes's user avatar
0 votes
0 answers
106 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/...
ocanal's user avatar
  • 141
1 vote
0 answers
93 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 ...
OldGreg's user avatar
  • 111
1 vote
1 answer
72 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 ...
jcdsr's user avatar
  • 168
1 vote
1 answer
187 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 ...
nandu kk's user avatar
  • 211
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
0 votes
1 answer
680 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 ...
Ani Vardanyan'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
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
1 vote
1 answer
49 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. ...
I am the Most Stupid Person's user avatar
1 vote
1 answer
566 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 (...
Rick Hellewell's user avatar
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
1 vote
1 answer
593 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 ...
Koen Hollander's user avatar
2 votes
1 answer
260 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 ...
Mivaweb's user avatar
  • 269
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