All Questions
Tagged with http-status-code-301 http-redirect
1,060
questions
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 '...
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]
...
-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 ...
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 ...
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А-Я]...
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 ...
0
votes
1
answer
47
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 ...
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 ...
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 (...
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....
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 ...
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....
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 ...
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 ...
-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 ...