Questions tagged [301-redirect]
The HTTP response status code 301 Moved Permanently is used for permanent redirection. This status code should be used with the location header.
540
questions
0
votes
0
answers
36
views
.htaccess - Apache rewrite rules, some work, some don't
this Rewrite rule is forwarding to url: https://www.fliesen-alfers.de/fliesennivelliersysteme/verlegefix-keilsystem/basis-sets/1-5-mm-basis-set/?number=102 as expected:
RewriteCond %{QUERY_STRING} (^|&...
0
votes
0
answers
106
views
URL Encoding Issue in Redirects with $request_uri
I'm encountering an issue with URL encoding in my Nginx configuration. I have set up a list of redirects using the map directive with $request_uri
map $request_uri $staticRequestRedirect {
/oil/%...
0
votes
0
answers
66
views
Remove Query String from Redirected URL $request_uri?
I am new to Nginx and I'm facing an issue with my Nginx configuration. I have set up a list of redirects using the map directive ($request_uri) as shown below:
map $request_uri $staticRequestRedirect {...
0
votes
0
answers
71
views
return 301 with nginx 1.24 is not working
I am trying to redirect http://foo.example.com to https://example.com:1234 [not really the port I am using ;-) ]
This used to work perfectly on an nginx 1.25 installation, but is not working on 1.24 ...
0
votes
0
answers
50
views
Using environment variables and a redirect loop to force-clear a 301 redirect
We mistakenly used a 301 redirect on a very important page, and now that we want to actually use the page, many users' browsers have the 301 stuck in their cache. The problem is that the destination ...
0
votes
1
answer
68
views
how to redirect entire my website in multilingual html website
i have a multilingual website, Arabic and English, my English pages its in rood directory and Arabic pages its in folder name ar; but i got my auditing report that; Search engines see
www....
0
votes
1
answer
160
views
how to proper redirect permanently in lighttpd
The following config (/etc/lighttpd/lighttpd.conf) seems to redirect to the default page
$HTTP["host"] == "pool.ntp.org|ch.pool.ntp.org" {
accesslog.filename = "/var/log/...
0
votes
0
answers
20
views
Htaccess Redirect Rule for 0-9 .html and Query String
I am new here and writing my question. Seeking help to resolve a redirection issue.
I want to redirect the following similar URL structure to the given example;
URL: https://example.com/jobs/...
1
vote
3
answers
881
views
Is it better to redirect root to www or www to root?
This may be a 'fashion' question, but is it better to redirect:
https://www.example.com -> https://example.com
or
https://example.com -> https://www.example.com?
I always assumed it was better ...
0
votes
0
answers
63
views
subdomain redirect best practices
I'm setting up a site served by Nginx on FreeBSD. The only content is at sub.example.net, and I'd like to 301 any requests to example.net, www.example.net, and www.sub.example.net.
My current solution ...
0
votes
1
answer
55
views
NGINX domain conf file, how to redirect 301 and proxy_pass
I'm pretty new to nginx and I'm trying to configure a redirect from http to https and, in the same file, set as location a proxy_pass to the desired URL.
My domain.com file is this:
server {
...
0
votes
1
answer
107
views
Weird 301-redirect to http from https only happening with CF as proxy on /wp-admin on www subdomain
I have a wordpress blog on an EC2 instance on AWS using the AMI image aws-marketplace/bitnami-wordpress-6.3.2-6-r09-linux-debian-11-x86_64-hvm-ebs-nami-7d426cb7-9522-4dd7-a56b-55dd8cc1c8d0
In ...
-2
votes
2
answers
43
views
301 redirect the old domain with a certain link to a new domain with the same link
I have a problem, I want to redirect htaccess
The content of domainold.com is still used, only this URL has changed
from the Old website, namely http://domainold.com/product/register
to my new site, ...
0
votes
1
answer
103
views
nginx redirects with changed response code
I am trying to redirect any location that gives 404 to the front page and change the response code to 302.
According to nginx documentation this should be possible?
https://nginx.org/en/docs/http/...
1
vote
1
answer
47
views
Redirect removing sufixes after 3 URL segmentes in Nginx
This is the URL that I need to remove the last segment (?order=asc)
https://www.example.com/segment_1/segment_2/page/the_number_goes_here/?order?asc
This is the code I'm trying:
location ~ ^/([^/]+)/(...