Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [redirection]

The tag has no usage guidance.

0
votes
0answers
11 views

Is it possible to redirect traffic sent to an additional IP on the machine to a specific port?

I have a machine that acts as a gateway between a network (say N1) for other machines behind it on a different network (N2). I have to use a special application that listen on a specific port. So a ...
0
votes
0answers
34 views

MacOS Internet Sharing redirect traffic [on hold]

I configured Internet Sharing on MacOS Mojave 10.14 for having a hotspot where I can connect mobile devices to Internet. I need to redirect some traffic (all except that going to 104.155.107.127) ...
0
votes
1answer
25 views

Why do redirects from my subdomain end up on my primary domain?

I've got a custom subdomain that, when using Java's HttpServletResponse::sendRedirect() is getting redirected to our main (sub)domain and I'm not sure why. Users at https:// custom.example.com/...
-1
votes
0answers
18 views

Local webserver accessible from outside but not localy [duplicate]

My ISP is giving me a static public address let's say x.x.x.x. I have a firewall between my network and the router from my ISP (which is in bridge mode, so it does nearly nothing, the firewall is ...
0
votes
2answers
53 views

Why my https://MY_SITE.COM always redirect to the wrong server?

I have done every thing I could to solve this issue, and I could not find any solution. So, my problem is that I can't have lemeilleurducbd.com or https://lemeilleurducbd.com to redirect to www....
1
vote
0answers
35 views

How can I reset the max-age cache control of my page being redirected ( 302 )

A few hours ago I used the following code in my htaccess to redirect the homepage to a maintenance page: Maintenance redirection RewriteCond %{REQUEST_URI} !/maintenance/index.html$ [NC] RewriteCond ...
0
votes
0answers
14 views

Linux - Bound TCP connexion from remote host to localhost

I was wondering how to bounce the connexion from a remote host to my local tcp server (which is listening on port 5555). On windows, I hooked the program, first of all, I blacklist the remote ip's, ...
1
vote
1answer
33 views

IIS URL Rewrite: Match subdomain and redirect to HTTPS

Suppose the website URL is subdomain.company.com I want to redirect the user to https://subdomain.company.com only if The original request is not using https subdomain matches subdomain.comapny.com ...
0
votes
2answers
46 views

Redirect purely LAN communication to a different interface and port (Linux)

I have the following situation: One interface (device) identified by an IP address of 192.168.1.x (I1) that's connecting through whatever service to another interface with IP 192.168.1.y (I2) to port (...
0
votes
1answer
27 views

redirect www.subdomain.domain.com to subdomain.domain.com

We currently have a domain that have a wildcard ssl so our site is something like this, www.ourdomain.com ourdomain.com subdomainA.ourdomain.com subdomainB.ourdomain.com and so on. What i want to ...
0
votes
0answers
10 views

Apache redirection search string in URL [duplicate]

I am using apache 2.4 on a linux box which is in production. at the background it is running jboss servers to serve the site contents. Now that application is been migrated to some other application....
-1
votes
1answer
57 views

DNS alias to external subdomain

I have a homepage with a subdomain. For example "mysub.maindomain.ch". Now I want to redirect another domain "www.theother.ch" to this subdomain. In fact: "www.theother.ch" should open "mysub....
0
votes
0answers
217 views

forward all traffic between two ports without iptables

I have read this: Port forwarding on Linux without iptables? I have a vps and I have ran lxc containers on it. I want to redirect all incoming traffic from one outside port to one port of a container ...
0
votes
1answer
46 views

Google Domains & Hetzner

I have a server with Hetzner, and a few domains with Google Domains. I have an Apache server running on port 80, and a Node server running on port 8080. If my server's IP is 192.0.2.4 and my domain ...
2
votes
1answer
100 views

Redirect traffic from one IP address

A have a root server with 2 static IP address which are both connected to one interface (eth0 and eth0:1). Now I need to redirect all incoming traffic from one IP address to a VM on the same PC. The ...
0
votes
0answers
154 views

Redirecting only certain Internet traffic via an existing VPN tunnel between two Zyxel ZyWalls

We have two geographically separated office locations. Each one has its own local network and its own Internet access. The big office's network is controlled by a Zyxel ZyWall USG 210, the small ...
0
votes
1answer
74 views

Apache 2: redirecting from https to https with www in htaccess

I have a problem with redirecting my website from https://example.com to https://www.example.com I've found a lot of advices (means rewrite rule to htaccess) on the Stack Overflow and serverfault ...
-1
votes
1answer
35 views

Website .htaccess redirection loop issue [closed]

I have my news website hosted in US and it is being managed by cloudfare. I have placed one local server in Nepal as well for faster serving of web pages. MYSql replication and web content sync is ...
2
votes
0answers
240 views

How do I get HAProxy to not change the request URL?

I setting up HAProxy, task is very easy - redirection to two servers on port 8443. I did it. But I have one trouble when I write in browser address line my domain (xyz.domain.loc), it replace my ...
0
votes
1answer
46 views

Redirect one interface

I have a server with two external IP addresses. One one eth0 and the other one on eth0:1. Now I want to redirect one IP to an other server in the local network. I've already tried: iptables -t nat -A ...
0
votes
1answer
241 views

Redirect all traffic from one domain

I have a server with a VM on it running. I'm now trying to redirect all traffic to the VM which uses a special domain. Example: domainA.example:1234 // don't redirect <br> domainB.example:1234 ...
2
votes
1answer
1k views

haproxy redirect custom http traffic to a custom https port

I wish to redirect my custom http port traffic to custom https port based on the port I receive traffic on I have multiple bind statements : bind 1.2.3.4:7777 bind 1.2.3.4:8888 bind 1.2.3.4:9999 ...
0
votes
0answers
27 views

Redirecting to an IP address using OpnVswitch flow rules

I want to redirect all the traffic coming to my OVS switch to an IP address. Is it possible to do so by adding any ofctl add-flow statements?
-1
votes
2answers
50 views

point an IP to a subdomain [closed]

It is very common to point domains or subdomains to some IPs. However, I would like to do the opposite: I would like to point the IP 42.42.42.42 to a subdomain, E.G to test.example.com so when I ...
0
votes
0answers
25 views

Are mail redirect not reliable?

I have now twice created a setup on two different platforms which appear to fail - sometimes. The emails just appear to vanish. I have a domain name and configured a MX record on the DNS to send ...
1
vote
0answers
45 views

How to 301 redirect piece by piece?

I will move my blog website (monthly traffic of 250k) to a new domain name. I will use HTTP 301 redirections. But I should not redirect all links at the same time because of some business reasons. I ...
2
votes
1answer
550 views

How allow Haproxy to follow a redirection?

I always get a Bad Request (400) response from Haproxy with this configuration. Here is the frontend : frontend http-in bind *:80 mode http option httplog log debug acl cm-acl ...
0
votes
1answer
180 views

Forward SMB from private interface to public interface?

I have a router with public IP address ADDR and private IP address 192.168.1.1. I also have a public domain DOMAIN with an A record pointing to ADDR. The router has a built-in SMB server. I can ...
1
vote
1answer
547 views

nginx + fpm + subdirectory

I have an nginx config that looks like this: location ^~ /movies { alias /var/dp.cx/movies/current/public; fastcgi_index index.php; try_files $uri /movies/index.php; location ~* \....
0
votes
1answer
47 views

Measuring Nginx redirection speed

I built a redirections management service - Redirecto where I am managing redirections for clients by nginx config files alone. I would like to benchmark my service in terms of speed & load it ...
0
votes
1answer
66 views

RedirectMatch Querystring on Root

I'm trying to configure a Redirect: I want to send only the root page of www.website.com to www.website.com/?lang=id However, if I use the below it will get stuck in an infinite loop as I'm not ...
0
votes
1answer
146 views

How to mask redirect subdomain and ports to another external subdomain on that same port

I have read through the forum but still cannot get a clear answer for what I need. My purpose is to mask redirect a subdomain to another one with the port passing together. For example, I want my vdi....
-1
votes
1answer
273 views

nginx mobile redirection issue with https only with parameters

I want to redirect following URLs from old site to new website. Earlier, I had a mobile website now I want to remove the old website. OLD - http://mobile.example.com - no need now NEW - https://www....
0
votes
1answer
87 views

PHPMyadmin redirection issues on Apache2

A couple of days back I updated Apache on the webserver. Which seems to have broken accessing Phpmyadmin through server IP: server.ip/phpmyadmin Instead now when typing above the ip/phpmyadmin it ...
0
votes
0answers
15 views

Having issues with htaccess ( mod rewrite and redirection )

I have a website where the use of mod_rewrite. RewriteRule ^([^/]*)/([^/]*)\.html$ /?systemdomain=$1&page-slug=$2 [L,QSA] can generate a url such as http://example.com/ny-sample-lawfirm-11415/...
1
vote
1answer
56 views

Permission to connect to network folder

Small company with 5 users running a domain on SBS 2008R2. PCs are all running Windows 10. We have had folder redirection enabled for several years and recently one of my users (Sandra) was unable ...
4
votes
2answers
898 views

htaccess redirect/rewrite rules for language specific domain

I have Grav CMS based multilanguage site and two domains: grav-site.pl and grav-site.com I want to redirect : grav-site.pl/en -> grav-site.com grav-site.com/pl -> grav-site.pl In grav knolage base ...
0
votes
1answer
169 views

Redirect output to /dev/tty1 outside chroot jail?

I couldn't figure out exactly how to word this in my searching; if someone could tell me what this is called and point me to a resource I would greatly appreciate it. TL;DR: For a CentOS installation,...
1
vote
1answer
898 views

Trouble with htaccess multiple rewrite rules

I have a below criteria If a query string matches Microwave_Ovens text I need to replace with Microwave-Ovens (replace underscore by hyphen) in Request URI. It is working as expected for the first ...
0
votes
2answers
872 views

HTTP to HTTPS rewrite not working the first time

I all, I have a strange problem with redirection to HTTPS on Debian running Apache. When a user visits http://subdomain.url.nl for the first time, a page not found is reported. When the user visits ...
0
votes
2answers
434 views

How to simply Reroute an IP to another?

Basically, here is my need : Being able to specify an IP address in the DNS Zones of my 60+ domains, and have the ability to redirect this IP to another one (and change it when needed). I'm not the ...
0
votes
1answer
102 views

Nginx handling all domain requests except https://domain.com

Our config is below - writing any of the following in a URL bar all work to reach the site at the desired destination URL (https://www.exampledomain.com): http://exampledomain.com http://www....
0
votes
1answer
914 views

Nginx map directive not matching rules

I have this nginx config file: map $request_uri $new_uri { default DEFAULT; /shell http://shell.com; /lol http://lol.com; } map $request_uri $ret_code { default 301; /shell 301; ...
0
votes
2answers
401 views

Nnginx map urls to proxy_pass in one location directive

I have multiple node websockets that are available through a url matching the UNIX socket paths. Instead of duplicating the location directive, I would like to have something like a list of Urls that ...
1
vote
3answers
959 views

website stuck in redirect loop after using behind cloudflare

my website https://stage.issufy.com/ , after setting up ssl, i get 302 redirect loop. Here is htaccess file <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -...
0
votes
2answers
791 views

Nginx map directive to specify redirection along with redirection type

I got redirections working by writing this config file: map $request_uri $new_uri { default https://github.com; /www http://wow.com; /?p=1 http://wow.com/p1; } server { listen 80; ...
0
votes
1answer
304 views

Using Apache RedirectPermanent to send all requests to a specific subfolder

Having asked a long and convoluted question earlier, I now have some code here using RedirectPermanent that I need help with. We're merging an old site into the new one, and don't care about mapping ...
2
votes
1answer
444 views

How to set index.html to redirect wget query to an other page/file?

If my server is at example.com, running $ wget example.com will only download the file index.html. How can I make wget either download another file instead of index.html download this file along ...
1
vote
1answer
135 views

Route domains to different servers on a local network, with external dynamic ip

I've been reading and learning a lot from you, guys, but this is the first time I post a question here. This is the situation: - I've got several web servers (CentOS 7 + Apache), some of them ...
0
votes
0answers
389 views

drive redirection not working on windows 2008 r2

I'm unable to get my local drives on a RDP session with a Windows 2008 R2 server. Settings on my Laptop>MSTSC>LocalResources>LocalDevicesAndResources>More = my local drive F: Settings on the RDS ...