Skip to main content

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
0 votes
0 answers
16 views

.htaccess 301 redirect with # hashtag in the URL

i need to redirect a single url with a # within it. For some reason the system generated this. Old URL: https://testurl.com/part1#/part0229452 New URL: https://testurl.com/part1 I think that the '...
Johan van der Meer's user avatar
0 votes
0 answers
14 views

Bookstack permanent redirects

How to create permanent redirects from old url to new url in Bookstack application after moving pages? I am planning to reorganize pages in my bookstack wiki (move pages from one book to another), and ...
user652061's user avatar
0 votes
0 answers
16 views

Redirect of entire site not working for sub-folders

I have implemented this change to .htaccess. RewriteEngine On RewriteCond %{HTTP_HOST} ^(www\.)?stakeholdermap\.com$ [NC] RewriteRule ^(.*)$ https://www.stakeholder-map.com/$1 [L,R=301] ...
projectmonkey's user avatar
0 votes
0 answers
16 views

Can be detected by google the 301 and 308?

I wanted to know if first the 301 and 308 are exactly the same and the second if Google can detect that there is a 301 or 308 done and could penalize the websites redirected. I am trying to make a ...
Manuel Guerrero's user avatar
-1 votes
0 answers
13 views

301 Redirect dynamic urls from database in .NET Core 3.1

I have thousands of links which need to be redirect to new URL using 301 Permanent Redirect. I have all these urls in the Database table. I would like to know where should be these URLs should be ...
gomnam gomnam's user avatar
0 votes
1 answer
52 views

Using AWS CloudFront to Serve HTTPS to AWS S3 Buckets, but SOME images are stuck in a redirect loop

Yesterday, I setup Certs and CloudFront, in order to move my sites from http to https. http auto-redirects to https. The CloudFront distros point at the S3 buckets. Everything works; except, some ...
Vexen Crabtree's user avatar
0 votes
0 answers
18 views

redirect 301 every page that contains the same paramenter

Mod_rewrite - remove question mark with paramenter and redirect 301 in .htaccess Is it possible to remove the ?number= parameter that each of my pages contains and redirect 301 without this parameter? ...
MarcE's user avatar
  • 1
1 vote
1 answer
126 views

Nextjs 14 App Router How to make 301 Redirect

I have slugs of products in my project. And the slugs are dynamic and can be updated. When it is updated, I want to redirect it to the new one with 301, but I could only redirect it with 308. The code ...
ilyas's user avatar
  • 120
1 vote
0 answers
45 views

iOS Browsers Stripping API GET Headers After 301 Redirect

I have a Django Server on an EC2 container and I use Firebase to authenticate my users. To authenticate the user I use an Authorization header with the Bearer Token on my API and get the Firebase UID ...
Jorge Fernández's user avatar
1 vote
0 answers
11 views

Remov3e 301 redirect?

I want to remove 301 redirect from old url to new url. I want old url give 404 error instead of redirecting to new url. I check all the possible factors in Rankmath like .htaccess file, robots.txt ...
gircow usa's user avatar
0 votes
0 answers
24 views

301 redirect from Cyrillic capital letters to lower

I need to redirect urls containing capital Cyrillic letters to lower Cyrillic letters as they generate 404 errors on the website. I have tried this: RewriteEngine On RewriteCond %{REQUEST_URI} [A-ZА-Я]...
Alexander's user avatar
0 votes
0 answers
22 views

Best way to handle 301 redirect for my product pages

I have a lot of products which currently have url structure like this: https://www.mywebsite.com/product-name1 or https://www.mywebsite.com/Product-name1 / capital P I have rebuilded my website using ...
Alexander's user avatar
0 votes
0 answers
19 views

How to redirect individual pages with URL parameters in .htaccess without causing a redirect loop?

I have an old website written in PHP in which all of the pages are served as parameters, in the format: https://www.mywebsite.com/index.php?action=view_page&course=main&type=sausages I'm ...
TunaSweetcornPizza's user avatar
0 votes
1 answer
46 views

WordPress redirect only one URL to a Laravel site

I have a WordPress site, https://dogx.hu, and a separate Laravel eCommerce site. My primary objective is to redirect from the "/shop" URL of the WordPress site to the Laravel site. In other ...
devdani7's user avatar
0 votes
0 answers
76 views

Why is my AWS ALB 301 Redirect not working?

I have an AWS load balancer that does a 301 redirect from URL test1 to URL test2. For the most part the redirect works as expected, however, when I have a script with type=module, then test1 isn't ...
Jeff Strauss's user avatar
0 votes
2 answers
97 views

Redirecting apex domain to non apex URL (www to non www) on GCP / GKE

There's an SEO issue where we have duplicate domains .. For example - www.domain.com and domain.com. I would like to recreate a 301 redirect from the apex website (www.domain.com) to the non-apex URL (...
Elazar's user avatar
  • 334
0 votes
1 answer
18 views

301 Redirect to assimilate one website into another

I have a main website example.com and another website subsidary.com. The subsidary.com website is to be phased out and redirects put in place. subsidary.com will have its A record repointed to example....
Chris Pink's user avatar
  • 1,801
0 votes
0 answers
32 views

Post method call is not working as expected because of @sap/approuter

On making the post call with json as it's payload to the backend server through sap app router, It is returning with the redirect url along with the status code 301 and because of that browser ...
Ruby Kannan's user avatar
0 votes
0 answers
249 views

Flutter Dio or http.MultipartRequest post Http status error [301] uploading an Image

I´m working my first project in flutter. I have a web server with mysql, and I'm loading and sending there the data with REST API PHP. Now I have an upload folder located here: https:///wp-content/...
Massimiliano Longo's user avatar
0 votes
0 answers
14 views

Combined 301 Redirect www, https and subdomain

I have the htaccess lines below to redirect requests without www and https to https://www.domainname.com. RewriteCond %{HTTP_HOST} !^www\. [OR] RewriteCond %{HTTPS} off RewriteRule (.*) https://www....
KenAdamsTR's user avatar
1 vote
1 answer
124 views

htaccess: how to avoid repeated conditions/rules

Well known issue: Google indexing engine states it can see 2x2x2=8 duplicates of the URLs, where differences are http - https www - no www root/ - root/index.php (8 duplicates for the root URL, and ...
mja's user avatar
  • 69
0 votes
0 answers
258 views

.htaccess: Clear Browser Cache & Redirection

Use case is a Wordpress installation, with another in subdirectory setup through cPanel. Code was generated for standard redirection of subfolder to index.html in subfolder subDir: RewriteEngine On ...
Laurie Stearn's user avatar
0 votes
0 answers
77 views

How does HTTP redirect work with HTTP methods?

I read the HTTP response status code, location and MDN documentation, what I could understand was that: Permanent: 301: Permanent redirect Accepted request method: All HTTP methods Recommended ...
Grizzly's user avatar
  • 385
0 votes
1 answer
212 views

How to use Nginx to 301 Redirect 200k+ Urls

I've been trying to figure this out for hours and have to throw in the towel. I'm used to using htaccess. I'm not receiving any error messages when reloading nginx, but none of my sample redirects ...
J.R.'s user avatar
  • 63
0 votes
0 answers
31 views

301 redirect from old domains url to new domains new url

URL redirections are not happening. I have 2 different url(old/new) old: https://olddomain.com/oldarticlecategory/ new: https://newdomain.com/newurlcategory/ Note: I've already created a rule that ...
Anup Dhal's user avatar
  • 619
-1 votes
2 answers
193 views

How to Set Up '301 redirect' from '/collections/all' to '/collections/all/shop-all' on Shopify?

I'm just tryin' to set up a link as the '301 method', tryin' to redirect from '/collections/all' to '/collections/all/shop-all' on Shopify, where when I click from the 'Shop' button, it needs me to ...
Tyler Tisdale's user avatar
0 votes
0 answers
41 views

How to fix 301 redirect loop in the client browser

I have two domains. Let's say aaa.com and bbb.com. Aaa.com was for a long time redirected to bbb.com with a 301. bbb.com is the site that is currently live but this is on the domain that we do not ...
Nick N.'s user avatar
  • 13.3k
0 votes
0 answers
15 views

most 301 redirect going to the same wrong page

I am moving one site to another. I have set up individual redirects. But all pages are going to the "home" page instead of the target pages. Those target pages are valid. What is going ...
John2's user avatar
  • 1
1 vote
1 answer
25 views

My htaccess redirects with regex aren't working

I have the following redirect in my htaccess: Redirect 301 "^/city/(.*)-north-carolina$" "https://example.com/US/NC/$1-north-carolina-hotels.php" When I enter example.com/city/...
AngryMob's user avatar
0 votes
0 answers
355 views

How to do redirect 301 between url https using Istio Virtual Service

I'm trying to perform a 301 redirect for some requests using Istio's Gateway with VirtualService. I've done everything, and it works perfectly if the request is over HTTP, but it doesn't work for ...
William Miranda de Jesus's user avatar
0 votes
0 answers
15 views

Unsure how to rewrite htacess to include 301 redirects... (Multiple RewriteEngine ons?)

I am VERY novice on this, having used 301 redirects for other websites a few times. This time, the website has an existing htaccess file that has some "bad bots" directives. Here is a sample ...
John's user avatar
  • 1
1 vote
2 answers
862 views

NextJS - Change all redirects from 308 to 301

I have a requirement from a customer SEO to redirect all pages from 308 to 301. Project is developed in NextJS 13 with page folder. I've handled most of the cases (old pages to new pages after ...
Radek's user avatar
  • 11
0 votes
1 answer
72 views

s3 redirect aws javascript sdk. x-amz-meta appended to x-amz-website-redirect-location

I am trying to put an object to S3 to redirect. I can create the object without problem however in setting the meta data the 301 redirect is not work. The meta data key is created however this is user-...
toomanylogins's user avatar
0 votes
1 answer
45 views

Strange Characters at end of URL and 301 wont redirect them to correct url

The below weird URLs popped up on Google console... I didnt add them and I dont know where they came from. https://www.example.com/gallery.html?page=3 https://www.example.com/gallery.html?page=2 ...
David's user avatar
  • 11
0 votes
1 answer
635 views

Dio invalid status code of 301. Tried many things but it doesn't work

This is a reference to how the data is supposed to look: This is how I did it: Future<Response> post() async { try { //--- final Response response = await _dio.post( &...
Ziad H.'s user avatar
  • 629
0 votes
1 answer
65 views

301 Redirect with characters at the end of the link

I disable my AMP plugin and i have two type AMP Pages and want to want to redirect them to orginal pages these pages with 301 redirect: https://example.com/post-name/?amp=1 https://example.com/post-...
Pouya Zehfroush's user avatar
1 vote
1 answer
68 views

Regex 301 RedirectMatch in .htaccess not working

Some time ago my WordPress site was hacked and was redirecting all clicks from Microsoft and Google search results to a some kind of Japanese auto part store. It was happening for few weeks, during ...
Guntar's user avatar
  • 503
0 votes
1 answer
2k views

Curl: 301 Moved Permanently

I am trying to write a script to download a file using curl command line. According to previous post, I should be able to follow a 301 using the -L flag. Here is what I am seeing on my Ubuntu 22.04.1 ...
malat's user avatar
  • 12.2k
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).
Ifnot's user avatar
  • 5,065
1 vote
1 answer
73 views

301 Redirect All interal pages to a new domains internal page via htaccess

I wish to 301 redirect all the internal pages of old URL to a singal destination of new URL via htaccess file. like I am looking to redirect http://www.advancedbuildings.org/...
Gaurav 's user avatar
0 votes
0 answers
100 views

Redirecting non-WWW to www

I hold my website on google cloud with one-click deploy wordpress. GNU/Linux system, Apache. I want to redirect https://example.com to https://www.example.com. So I update the .htaccess file as the ...
ledison03's user avatar
0 votes
2 answers
38 views

Problem making API request on Skiddle: 301 moved

I'm trying to request events through the skiddle API, using endpoint http://www.skiddle.com/api/v1/events/search/, but when I try I get the following response: HTTP/1.1 301 Moved Permanently Server: ...
Jodes's user avatar
  • 14.5k
0 votes
1 answer
89 views

Set 404 redirect before 301 with IIS config file

I got a website where is working 301 redirect from url with "/" in the end to the same link without "/". e.g. from www.website.com/test/ to www.website.com/test it seems that this ...
HuekoMundo's user avatar
1 vote
1 answer
70 views

301 Redirect a URL to the home page using htaccess not working

I am trying to 301 redirect from:https://www.domain.co.uk/?404;http://www.domain.co.uk:80/sn-down-to-earth.html to https://www.domain.co.uk/ In my .htaccess file I have the following: Redirect 301 &...
Chudz's user avatar
  • 160
-3 votes
1 answer
39 views

htaccess 301 Redirect to subdomain in wordpress

I have a problem with redirection on my website. I don't know how built file htaccess. now: www.mydomain/folder/value1/value2 resault: www.folder.mydomain/value1/value2 May You help? I try many ...
Marek Farnholz's user avatar
1 vote
1 answer
570 views

HTTP json post on SİM800L problem. HTTPACTION responses are 301, 603 and 606

#include \<SoftwareSerial.h\> String apn = "internet"; //APN String apn_u = ""; //APN-Username String apn_p = ""; ...
sir-user's user avatar
1 vote
2 answers
445 views

How do I 301 redirect a single page on my Cloudfront/ S3 hosted web page?

I use an AWS Cloudfront + S3 solution to host my website. I redirect all naked domain and vanilla HTTP requests to the prefix https://www.example.com. The following S3 Cloudfront Architecture cartoon ...
John Sobanski's user avatar
0 votes
1 answer
42 views

How do I remove S3 webpage Redirection Rules?

I created a redirect rule in the S3 console with the following logic: [ { "Condition": { "KeyPrefixEquals": "category/coins" }, &...
John Sobanski's user avatar
1 vote
0 answers
127 views

Why do I get a 401 error after a 301 redirect?

I get 401 Unauthorized when I do a 301 redirect from an AWS Lambda to the top page of my site hosted through AWS Amplify. I also get the error Cross-Origin Request Blocked: The Same Origin Policy ...
Art Vandalay's user avatar
-1 votes
1 answer
100 views

I would like to trace url redirects and echo them as links

I would like to create a script that gets website redirects and echo the link except original link Something like this website https://wheregoes.com/ I tried this code but it doenst work, some urls ...
Mamadona's user avatar

15 30 50 per page
1
2 3 4 5
37