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.
1,727
questions
0
votes
0answers
13 views
Defining HAProxy ACLs to route backends based on request URL
I am trying to use HAProxy as a reverse proxy to route frontend requests to different backend servers based off the request URL, I am struggling a little bit to understand the official documentation, ...
0
votes
1answer
29 views
How can we implement 301 redirects for the below scenario on .htaccess file
Old url: www.vanguardinvestments.com.au/businessline/product.html#/fundDetail/wholesale/portId=8162
New URL: www.vanguard.com.au/businessline/products/en/detail/8162/Overview
We have 60 old urls of ...
1
vote
3answers
47 views
Redirect all subfolders from domain A to same subfolder in domain B
I have 2 domains, and need to redirect all subfolders from domain A to the same subfolder in domain B.
Domain A = Wordpress
Domain B = Prestashop 1.7
Example of what I need to accomplish:
https://...
0
votes
0answers
9 views
Permanent redirection keeps hitting effective URL everytime
I have created two Rest API's in the backend (same webservice), one for the effective URL and other for the Redirected URL. I'm doing a 308 redirection here when user hits effective URL.
Scenario's
...
0
votes
0answers
6 views
Pointing domain to Port with apache
Morning guys
I have hosted a node application on my server. I have followed protocol for apache which I have done a few times before. I am receiving a 301 error "ERR_TOO_MANY_REDIRECTS" ...
0
votes
1answer
37 views
Redirect not working on iphone/mobile data
I am trying to redirect to https and then a subfolder.
It works great on my iPhone until I connect to mobile data and clear my browser/cookies. Then I get a connection time out or server stopped ...
0
votes
0answers
43 views
htaccees too many redirects
I am having a problem with too many redirects on my site, I wanting to make sure all users finish at https://example.com even they come from http://www.example.com or https://www.example.com basically ...
1
vote
2answers
21 views
301 Redirect with .htaccess to a new domain with editing some specific links
I am trying to move my whole website through .htaccess doing this
#Options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*)$ https://newdomain/$1 [R=301,L]
Some of the links from the old website ...
1
vote
0answers
8 views
Nginx detecting 301 requests
I have tons of 301 redirects to my server from spam domains to reduce my google rank. How can I detect the 301 request and also is it possible to filter it by whitelist domain list? Because also I ...
1
vote
1answer
22 views
Redirect all pages to a new domain htaccess
I want to redirect my entire website to a new unique address/domain without respecting the relation between filenames.
I don't want olddomain.com/foo.html to be redirected to newdomain.com/foo.html.
I ...
1
vote
1answer
53 views
how to write 301 redirect rule when urls have the same base
I have troubles writing 301 redirect rules in ht access. I can't find the right syntax.
My problem is that two rules
Redirect 301 /lessons/ https://example.com/lessons/piano/
Redirect ...
0
votes
0answers
31 views
Redirect a Weebly index.html to root domain
I am trying to redirect a Weebly site /index.html to the root domain. I added this line in my .htaccess.
Redirect /index.html https://example.com
RewriteCond %{REQUEST_URI} !-f
RewriteRule ^ajax/(.*)$...
0
votes
1answer
29 views
link preview not working (shows 301) on shortened bitly links on Facebook
When posting a link on Facebook, after setting the open graph meta tags (e.g. og:title, og:image) it successfully shows a link preview as I intend it to. However after shortening the link with bit.ly, ...
1
vote
1answer
47 views
Redirect non www to www sub pages also
in .htaccess Am using :
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1/$1/ [R=301,L]
It works fine for main domain i.e. redirects example.com to ...
1
vote
1answer
56 views
Trying to obtain images from another location but RedirectMatch in htaccess is ignored
I've just setup a new subdomain 'preview', ie preview.example.com and I am setting up a replicate of the codebase of a live website (from the www. subdomain) so that I can have a duplicate environment ...
0
votes
0answers
9 views
my api is redirecting and getting error of 301 while using .aspx page
my api is - http://IPaddress/Transformer/Trans.aspx?DeviceImei=861551046966111&DeviceTimeStamp=01-22-2021%2012:37:59&MachineName=KKK
while im using this api , its giving 301 error and data not ...
0
votes
0answers
17 views
301 Redirect URLs Meta
I have multiple links on my domain and all are 301 redirected URLs.
I want to use the meta information of my original URL, not the redirected URL.
For example,
I have a link https://example.com and is ...
3
votes
1answer
31 views
Avoid .htaccess inheritance
I have an .htaccess in root directory to redirect to a subdomain.
RewriteEngine on
RewriteCond %{HTTP:Accept-Language} (en) [NC]
RewriteRule .* https://en.domain.com [R,L]
In the same directory I ...
0
votes
1answer
30 views
301 redirect not working on click only on refresh or new window
I have a website that I am working on closing and merging into another. I've set some 301 redirects to the site I am merging into but they don't work on click, only when I open in a new tab or window ...
2
votes
2answers
40 views
Redirect multiple domains (http https www & non-www) to a new domain using htaccess
I have 3 different domains (with two different TLD) and I would like that all my domains redirect to only one (including all format http https www or non-www) -> https://www.newdomain.com
All my ...
2
votes
2answers
43 views
How to redirect domain path to other domain path using .htaccess?
The domains below are just sample domaains.
I want to redirect mydomain.com/test/ (wildcard) to google.com/dl (wildcard)
I am using this codes
RewriteEngine on
RedirectMatch 301 ^/test/.*$ https://...
0
votes
0answers
7 views
Wordpress page won't load from Google referrer, loads fine if I browse to it directly
I updated my Wordpress site and added a SSL hosting option with GoDaddy. Whether connected or not, anytime I try to load my site from a Google search result, the site will NOT load. I need to ...
0
votes
1answer
42 views
Redirect path to home, with path string as a GET variable using .htaccess
I am trying dynamically to redirect all links of the form
example.com/path1
example.com/path2
example.com/path3
...
to
example.com?src=path1
example.com?src=path2
example.com?src=path3
...
A static ...
1
vote
1answer
29 views
Redirect user through multiple domains
Does anyone know about the browser's policy about multiple HTTP 302 redirections?
Example in steps:
On domain A user clicks on a link and lands on Domain B
On domain B he is auto-redirected to domain ...
0
votes
1answer
45 views
301 redirect front page only
I created 2 pages when starting my blog: the first page which only serves as a 'summary' of what my blog is about and the second page which is the one with actual content.
I don't want to keep the ...
2
votes
1answer
63 views
.htaccess - Redirect old website to main domain but also some content to subdomain of the main domain
I want to redirect an old domain (https & www) to the main one. I need to redirect it to the home page and blog. But, there are 4 pages on the old site I want to redirect to the subdomain of the ...
0
votes
1answer
25 views
how is the redirect rule from https://www.domain to http://domain?
this is
http to https
non www to www
#http -> https
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
#add www.
...
1
vote
2answers
47 views
.htaccess redirect to subdomain url with hash
I'm trying to redirect a site with the following url structure:
https://example.com/2021/about
to
https://2021.example.com/#about
https://example.com/2021/visit
to
https://2021.example.com/#visit
...
1
vote
1answer
60 views
Forwarding Old URL with trailing slash
I was using the Divi builder with WordPress for quite some time to build my site. I outgrew it and switched to Webflow so that custom code would be easier to achieve. I have gotten the site live, but ...
0
votes
1answer
67 views
htaccess 301 redirect root to subdirectory
Trying to get
www.example.com
to go directly to
www.example.com/forum
How can I do this with this configuration? Thanks in advance.
Edit:
Right now I have added below content in .htaccess
...
1
vote
1answer
71 views
Redirect 301 with regular expressions to new url with different numeration
I moved my system forum and I need some redirections. Is difficult for me redirect this urls.
website.com/folder1/123456-name-of-article
website.com/folder1/name-of-article-r654321
You can view this ...
0
votes
0answers
31 views
Moving HTTP site to HTTPS on Netlify - 301 Redirects and SEO
I am moving my old HTTP site to Netlify and need some guidance on 301 redirects and SEO.
I will be using netlify.toml for redirects.
Netlify will automatically redirect http://www.example.com to https:...
0
votes
1answer
83 views
How to redirect 301 on the Digital Ocean App platform?
How are 301 redirects made for websites on the Digital Ocean App platform?
I would like to redirect certain pages such as:
domain.com/my-old-page/ redirects to domain.com/my-new-page/
I should mention ...
1
vote
1answer
34 views
Redirect URL without trailing post id using .htaccess
I have a scenario where I need to redirect all URLs or wordpress without trailing post id using .htaccess
Example:
https://example.com/chapter/subject-origin-chapter/1223 to https://example.com/...
0
votes
0answers
44 views
Nginx Ipv6 http to https not working but ipv4 http to https is
Here is my configuration:
server {
listen 80;
listen [::]:80;
server_name example.org www.example.org example.net www.example.net;
location / {
return 301 https://example.org$request_uri;
...
0
votes
2answers
141 views
Redirect url to www in reactjs nextjs as a server side 301
I have some trouble to route my web site to same redirect but with www server side. For example if a user browses my web site example.com , i should redirect it to www.example.com. I found nextjs ...
0
votes
1answer
11 views
How to redirect users from old domain to new domain, if they have cached the site
My old domain is no longer valid, I have changed the product name.
I want to redirect all old users to my new domain.
I told my domain-provider to 301 send them to my new domain.
My issue is that when ...
0
votes
1answer
32 views
301redirect issue in Gatsby.js
I'm using gatsby.js with hundreds of blogs but I migrated the website with some reason.
So original blogs's urls were like localhost:8000/blog/3-Best-Football-Shoe and those are well organized with ...
0
votes
0answers
10 views
Why are 301 redirects for windows-hosted wordpress site doing nothing?
I have a wordpress site that is hosted on a windows server.
I am trying to add 301 redirects for a site migration. I have added the below code to my web.config but when I navigate to https://example....
0
votes
0answers
14 views
How to Wordpress Site Search redirects to /?s=xyz
how can I create dynamically redirects from old search queries to the wordpress search with .htaccess?
Redirects from old search structure to wordpress:
/en/suche?q=XYZ --> /en/?s=XYZ
/sk/suche?q=...
1
vote
1answer
16 views
Trouble redirecting urls in nginx
I'm trying to set up an Nginx redirect where domain.com/story/urlname would redirect to domain.com/clientstories/urlname. Essentially need to redirect from one sub-path to another. I tried the ...
0
votes
0answers
16 views
django webhook 301 Moved Permanently error
I am implementing a webhook receiver in the website I am developing to receive POST requests. I am having an issue receiving the POST requests. To test if it is working, I tested sending POST data ...
0
votes
0answers
12 views
Htaccess 301 redirect problem: previous folder redirect interferes with sub-folder re-direct
I've got a problem when trying to re-direct urls to the equivalent content on to a new domain with a completely different folder structure. Here is what my .htaccess file looks like:
RewriteEngine On
...
1
vote
3answers
175 views
Yii2: Best method to intercept 404 and do 301 redirect to new page?
For SEO purposes I want to redirect my old non-Yii2 URLs to the new ones. So I need to intercept the 404 that Yii throws and respond with a 301 redirection. Where is the best place to do that?
1
vote
1answer
23 views
Removing a character from a redirect URL in htaccess
When I re-did my web site years ago, some old straggler pages were left in the old format. So I wrote redirects in the htaccess to send them to new the pages. Problem is the old url's added a ...
0
votes
1answer
122 views
Wordpress automatically created a redirect that I need removed
I made an edit to a page on a Wordpress site that included changing its parent. Unfortunately I was not paying attention and this move somehow changed the permalink/slug which I saved before noticing. ...
0
votes
0answers
9 views
301 redirect on .aspx to wordpress
I am in the process of moving my website from a custom .NET site to a Wordpress/WooCommerce site, keeping the same domain name.
Obviously, for Google "juice" I am doing my best to keep the ...
1
vote
1answer
22 views
httaccess 301 redirect without URL variables
I'm having a problem making a 301 redirection.
My old URL is
https://example.com/es/component/users/registration?item=21
The new one is
https://example.com/es/login/registro
So, I wrote this in ....
0
votes
0answers
9 views
How to set up an S3 static website redirect and retain custom domain
I have a static site hosted in S3. I have a Cloudfront Dist running in front of it. For this request I have an example page: https://example-domain.com/test-page/ I want to redirect it to https://...
0
votes
1answer
130 views
Google Cloud Platform Loadbalancer - ERR_TOO_MANY_REDIRECTS
I am using Google Cloud Platform to host a Wordpress site in a VM.
I am trying to setup a loadbalancer with CDN enabled.
Without the loadbalancer site works fine, there is no http to https redirection ...