Questions tagged [redirect]
HTTP or HTML mechanisms used for redirecting browsers to where the actual content is located
2,303
questions
0
votes
1
answer
132
views
Apache vHosts - Two domains, multiple subdomains and defaults possible?
after searching and try-and-erroring for a while I came to the conclusion that my problem is a bit too special for google :-)
I have 2 domains and multiple subs
example.org
cloud.example.org
wiki....
0
votes
0
answers
53
views
What's the recommended way to use GeoIP2 with a varying mirror list?
I want to setup a webserver, where every HTTP request is directly redirected to a nearby mirror. So far we used the unfortunately no longer supported Perl module Apache2::Geo::IP together with Apache'...
1
vote
1
answer
346
views
Trapping misformatted paths to Redirect to 404 instead of returning 403
Owing to an error long ago our company web site has been serving image URLs containing a significant amount of white space.
E.g.
http://www.example.com/ /assets/ProductPhotos/...
0
votes
1
answer
234
views
How can I configure Nginx to redirect all traffic to my website to the HTTPS WWW version and HTTPS version for subs with a consistent URL structure
What I am trying to do is to have some clean redirects and don't make the content from the server available everywhere like is available via https://server-ip https://non-www and https://www-version
I ...
1
vote
0
answers
262
views
Redirect a subdomain to a different subdomain using host records
I have two domains example.com and example2.com; the second domain is simply to catch a common misspelling of my name and I want to redirect everything on it to example.com.
I have a number of ...
0
votes
0
answers
89
views
Site with subdomains in redirect loop - Nginx configuration Issues
this is the website (the website also have subdomains)
nginx configuration:
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to ...
0
votes
0
answers
118
views
Fail2Ban redirect instead of drop
I'm trying to configure Fail2ban to redirect instead of banning, I've found plenty of posts about redirecting to a different port for HTTP traffic to display a different webpage, but I need to ...
1
vote
2
answers
1k
views
nginx reverse proxy with docker containers and specific nested locations
I would like to set up nginx as a reverse proxy with multiple apps on docker containers permanently residing under specific locations, e.g.:
https://sub.example.com/wiki
https://sub.example.com/app1
...
0
votes
1
answer
93
views
Redirect rules for multiple enviroments
I have written a set of rules for 3 different environments on the same server. In a nutshell I would redirect the users to the Dev, Stage and Prod single sites. Also enforce https and www for the ...
0
votes
1
answer
49
views
Nginx custom 301 rewrite
I am struggling to find how to write this scenario 301 redirect to nginx:
https://mydomain/$
to be converted
https://mydomain/en_us/$
Actually I need to add "en_us" just after mydomain and ...
0
votes
1
answer
771
views
How to redirect all pages that contain a specific word using the .htaccess file
I have a bunch of indexed pages that start with the same word and they are all 404 so I want to redirect them all to the homepage of the site. The server is Apache, so I would like to use the ....
0
votes
0
answers
38
views
The "signin-google" redirect works locally but fails when publishing the app to the server
I am trying to make Google authentication enable for my web app. It works fine locally. But after I published it into my host, it failed at the callback.
I have been trying several ways for five days ...
0
votes
0
answers
276
views
Postfix - redirect AND change the To: header
I want to redirect messages with postfix if they are sent from a specific sender. The redirect should be visible in the To: field. For the redirect I tried to use this header_checks rule:
/^From:.*...
0
votes
0
answers
321
views
Drop first SYN packet with nftables
How can I drop the first SYN packet (or the first SYN/ACK reply) received by my server?
I have a test VPS set up to capture and analyze malicious traffic directed to non-standard TCP ports, for ...
0
votes
0
answers
68
views
S3 CloudFront distribution load different bucket based on IP
I have a domain (myweb.com) pointed to one of my cloudfront distributions eg.:
myweb.com -> https://web1.s3.amazonaws.com/
now based on the internal organisation IP, I would like to load a new ...
1
vote
1
answer
285
views
Nginx how to make redirect by removing part of URL with regex mask?
I need to redirect from URL like
example.com/some-urltext-nav.html to example.com/some-urltext.html (remove "-nav" only).
I've tried some regular expressions in server block like rewrite ^.*?...
2
votes
2
answers
3k
views
.htaccess - Redirect all URLs with one exception
I want to redirect all URLs from one domain to another.
Some of the old URLs have new counterparts with specific pages to redirect to.
All other URLs should redirect to the homepage of the new domain.
...
0
votes
0
answers
56
views
ASP.NET application not accessible through Apache proxy on Linux
I need to clarify the process of pointing a web domain to a running ASP.NET application on a raspberry pi. The application is developed and ready, and the website is up and running. I have researched ...
1
vote
1
answer
658
views
htaccess: 301 redirect defined URLs to new domain and catch all redirect the rest
I want to redirect some URLs from an old domain to new versions on a new domain.
The old domain uses the www. subdomain and SSL.
For example:
olddomain.com/audi -> newdomain.com/cars/audi
...
0
votes
1
answer
77
views
Configure SSL for Apache Reverse Proxy
I want to redirect HTTPS connections to my domain towards a unique subdomain using Apache2 reverse proxy. I want all the connections that come to a.example.com to be redirected towards $random$.b....
0
votes
0
answers
49
views
Using nginx proxy to redirect the content to another website
I'm using Ubuntu 18.04 & Nginx for my websites.
I need help with the following question.
Let's say (on the same server) I have the following:
/home/website1/public_html/image_abc.webp
When people ...
0
votes
0
answers
203
views
Nginx - redirect subdirectory to a different domain without changing URL
We've set up a Matrix-Synapse chat server at the root of one domain, and we'd like to redirect the /element subdirectory to the Element client hosted at another domain, but without changing the ...
0
votes
0
answers
361
views
How to remove part of an URL in Nginx?
I want to automatically remove /feed from the URL
For Example:
example.com/blog/something/feed/
to
example.com/blog/something/
Could someone tell me how to do this in Nginx?
0
votes
0
answers
25
views
IP of ubuntu server is accessible even after it listens on domain [duplicate]
So my problem is that my site is accessible also with IP like https://xx.xx.xx.xxx
something that I don't want. I only need domain name accessing servers IP.
I tried virtual hosts on apache2 to ...
0
votes
1
answer
225
views
Apache2 how to generate random string for subdomain
I want to issue a redirect to a new randomly generated subdomain name for every request I get. Below you can find my vhost configuration. I want to do a redirect towards a subdomain containing some ...
0
votes
0
answers
3k
views
IIS 10 will not redirect HTTP to HTTPS after enabling HSTS
I am attempting to force end users onto HTTPS when visiting our site. I have HSTS enabled in IIS at the site and application level. I have an HTTP redirect set up at the site level to https://...
0
votes
0
answers
83
views
listen and redirect TCP stream to file with multi client support in the background
is there any tool I can listen on some port and accept any client and redirect the stream to a file. I know it can be done using netcat but it seems netcat cannot keep running in the background.
I did ...
0
votes
1
answer
1k
views
HaProxy redirect to internal URL
I have a configuration with two backend servers I need to redirect 301 to each server with an internal URL on HTTP. It's hard to use SSL because I can't install SSL on the Report Server in that ...
1
vote
1
answer
160
views
How Can We Do 301 Redirect Of Over 200 Pages To Corresponding 200 Pages At New Location?
I need help and need it fast.
We recently migrated a subdomain to integrate with the domain.
Eg. https://blog.example.com to https://www.example.com/blog
https://blog.example.com has a ton of traffic ...
1
vote
0
answers
29
views
nginx dynamic forwarding requests coming from users
I have a backend application that binds users with server ports (I attribute a random available TCP port to each connected user)
Using NGINX, I want to redirect all requests coming from a user -...
0
votes
1
answer
180
views
Exclude specific URL from HTTP to HTTPS redirect in apache2 virtual host
I'm looking for an easy configuration to exclude a specific URL(pattern) from my apache2 HTTP to HTTPS redirect and failed so far. Background is an API with typical authorization mechanics which ...
1
vote
1
answer
499
views
Change upstream response from 302 to 301 in nginx
I have a Django app as an upstream using Gunicorn in nginx, and that app sometimes sent me back a 302 with a Location. And that it's perfectly fine.
We can't touch Django's code but colleagues need ...
0
votes
0
answers
90
views
Is it possible to redirect outgoing traffic on an already used port without using iptables?
I am wondering is there is another solution than iptables to redirect outgoing traffic on a port that is already used to another one, on the same machine locally.
Thanks.
1
vote
0
answers
420
views
Redirect traffic of one proxy to another one
I have installed a v2ray client on my server and I can connect to it successfully. Assume it is listening on following address:
http://localhost:1089
I also installed MTProto proxy on my server to ...
0
votes
1
answer
660
views
nginx redirect multiple server names with non-standard port in url
I have an endpoint like https://app1.company.com:5555 and will like to be able to browse the website with the port number in the url for all pages and also be able to browse without the port number at ...
0
votes
1
answer
1k
views
ssh local port forwarding not working when url is redirecting to https
I have a windows 10 home with Linux kali running inside it with vmware virtual machine software.
There is a local website that opens on url https://example.com in linux and has self signed certificate....
0
votes
1
answer
23
views
http timeout https works - Apache ssl redirect doesn't work
Asking myself this question because it took me very long to figure out and I hope I can help others, to be faster.
On my server https://example.com worked fine and I set up a redirect to make sure it ...
0
votes
1
answer
235
views
nginx: [warn] server name has suspicious symbols with long domain redirect
What is the best way in Nginx to redirect two Long domains URLS, I would like to configure a redirect between two domains like this:
I'm sure this has been asked before, but I can't find a solution ...
0
votes
1
answer
324
views
Why does IIS timeout http requests on phones, but accepts https?
I followed this solution on how to redirect http to https. It works on pc but not on phones for some reason (and im sure neither on iPad or tablets). You can test the website here. I think IIS is ...
0
votes
1
answer
155
views
Any way Nginx can resolve a CNAME (or look up a URL elsewhere) and then redirect to the result?
I've got an AWS API Gateway endpoint with a URL like this:
https://xxxxxxxxxx-vpce-09572222209cd2305.execute-api.us-west-1.amazonaws.com
I want to create an easy to remember alias for that name that ...
2
votes
1
answer
2k
views
Redirect part of a URL parameter to the URL-Path
I used a module that created links like this:
https://example.com/login?create_account=1&back=https://example.com/product/2164/?ets_rv_add_review=1
I need to redirect them to:
https://example.com/...
0
votes
1
answer
780
views
Redirect all URLs to other (external) site except for one path?
I have a working website (http://www.example.com) that (uses PHP-FPM) for which I want to redirect all incoming trafic to an URL on another website (ttps://www.other-example.com/foo.html) except one ...
0
votes
0
answers
329
views
Issue with Nginx Url Rewrite /Redirect
For new site config I tried NGINX rewriting for the blog plan and keep the paths the same, just redirect from 'www.' to 'blog.'.
and plan for RSpace API and CME have been configured and the ALB.
www....
1
vote
0
answers
36
views
Going to example.com redirects to example.com/www
So firstly I'm not entirely sure if this is the right place to ask but I couldn't find another stack site relevant to servers so.
Recently I bought a domain with OVH, and have setup the site with an ...
0
votes
1
answer
1k
views
How to redirect specific page to another url on nginx?
I am using matomo hosted on this sample url:
https://testmatomo.azureapp.com
Since I want to secure the admin page of matomo, I setup a Cloudflare Access w/ Zero Trust for that specific domain ...
-1
votes
1
answer
40
views
Simple IP/URL Redirection
We have a web application that each user has their own address like our-app.com/user1. Our users want to use their own domain and redirect to their pages on our app. For example www.user1.com => ...
0
votes
2
answers
46
views
How do I redirect "old.foo.com/foo" to "new.foo.com/foo" with a NGINX K8S ingress, without breaking cert-manager?
In my K8S ingress config, I'm trying to redirect from (for example) old.mywebsite.com to new.mywebsite.com.
I can do this with the nginx.ingress.kubernetes.io/permanent-redirect annotation, but ...
0
votes
1
answer
97
views
How do I redirect a website to local website?
I am trying to make my browser load local website instead of visiting actual website.
I have this httpd configuration
<VirtualHost 140.82.113.4:80>
ServerName www.github.com
ServerAlias ...
0
votes
1
answer
392
views
redirect http to https in nginx load balancer
we have a setup of nginx load balancer where we configure our servers.
Now, the requirement came like all the dns that we are maintaining should be only allowed with https.
Example: tempserver.com is ...
1
vote
0
answers
115
views
when it goes to https:/... directly it is missing the referer part
it's all about cookies ,it suppose redirect to ?referer_id=186 every time which is refresh the cookies of new logo but i notices when user delete or clear the history of Brower and try to visit the ...