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
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
24 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
9 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
52 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
167 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
40 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
92 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
114 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
63 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
34 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
181 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
229 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
761 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
26 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
49 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
43 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 ...
0
votes
0answers
108 views

www redirection to non-www (Windows Server)

If I want to redirect traffic to www.example.org to example.org, is that achieved through DNS configuration or IIS configuration? I'm running Windows Server 2012 R2.
2
votes
1answer
485 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
165 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
502 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
42 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
56 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
134 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
206 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
70 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
727 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
150 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
837 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
725 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
398 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
99 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
766 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
360 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
854 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
622 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
285 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
413 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
120 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
355 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 ...
0
votes
2answers
750 views

Need help on NGINX full URL redirection rewrite rule

I am trying to redirect in a complete URL, including every strings on the url. I want this http://www.SITE-A.com/everything?complete=url&fully=redirected redirects to http://www.SITE-B.com/...
1
vote
1answer
3k views

Using iptables port redirection with docker

I have a Linux server running Jenkins (HTTP on port 8080) and the same server is also running Docker 1.12.1. I used some iptables rules (as per official Jenkins install docs) to redirect port 8080 to ...
0
votes
1answer
49 views

What's the error in my HTACCESS

index page and profile page show 404 after htaccess redirection I transfered from bogger to wp.. redirected all links from year/month/postname.html to postname/ using these lines: # WPhtc: Begin ...
1
vote
1answer
658 views

OpenVPN: How to redirect traffic for just one client?

I have an OpenVPN server configured on my Tomato router and I have the Direct clients to redirect Internet traffic option disabled because by default I don't want my traffic to be redirect through my ...
0
votes
1answer
455 views

Change subdomain url to subdirectory without redirection

I found a few questions and answers close to what I am trying to solve, but not quite. I see references to using mod_rewrite to change url paths without redirection. But, what I am looking for is, ...
0
votes
0answers
233 views

Redirect client to specific URL openvpn?

Soon I'm going to have to change my VPN server's IP address. This will mean that current client configuration files will no longer work with the new server. I was wondering if it's somehow possible to ...
1
vote
1answer
557 views

HTTP Redirect of Cyrillic URLs: this example works without URLs being encoded. Why?

As per the https://tools.ietf.org/html/rfc5987, HTTP header fields should be returned using the ISO-8859-1 character encoding. This applied also to the Location field used for the redirection. ...