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]

Can be either redirection internet traffic to different IP's or redirection of files from one path to another path.

1
vote
0answers
20 views

Postfix configuration - canonical address mapping

I am trying to configure the mapping in postfix to take all outgoing mail and redirect it to certain inboxes. I have a working setup which will rewrite/redirect properly in the canonical_recipient ...
0
votes
1answer
29 views

AWS redirect www.example.com to non-AWS hosted www.example.net + URL including parameters

I'm looking for the most efficient and cost effective way of setting this up: http://www.example.com or https://www.example.com redirects to https://www.example.net/xyz?foo=bar&baz=qux example....
0
votes
0answers
6 views

Redirect RTMP connections from one server to another

I'm setting up a server for loading balancer between servers (Transcoders). I have many transcoding servers and i want balance between those servres by php algorithm to selecte witch server respond to ...
1
vote
1answer
14 views

Redirecting the output of service in Ubuntu to Log files

I am on Ubuntu 16.04 and deployed a service in /etc/systemd/system. The service file booster.service contains [Unit] Description = booster After = network.target [Service] ExecStart =/opt/tech/...
0
votes
0answers
8 views

Using Wget to Download a File From a Page That Uses Redirection To Initialize Download

I was writing a script with wget that tried to download the latest version of blender available on blenders home page to try to automate downloading the latest version. I ran into a problem with wget ...
0
votes
1answer
15 views

Why is apache not passing Location header from cgi script back to client

I have an existing cgi web app which used to work fine, but whose behaviour has changed. One of the cgi programs (under certain conditions) returns a Location header, to cause a redirect. The ...
0
votes
0answers
13 views

Ampps apache server redirecting ip to “www.127.0.0.1”

I'm running a fresh install of Ampps with a fresh install of Wordpress. Can't seem to figure out why it is redirecting to www.127.0.0.1 as I did not change anything serious. Just using simple HTTP for ...
0
votes
1answer
68 views

PHP Session lost after redirect (sometimes)

I use, Apache/2.4.28 (Win64) PHP/7.0.32 in a Windows environment. I try to do with this question, but in my case, a lost error occurs sometimes. (Sometimes mean, problem occur 5 hours or more hours ...
1
vote
0answers
27 views

Windows 7 - Redirect requests to remote http server to localhost

How can I redirect all requests to a 1.2.3.4:80 to localhost:80? So that everything would be downloaded from my local web server. I can't use hosts, because the app is calling the server directly by ...
0
votes
1answer
19 views

Redirect Non WWW to WWW - htaccess placed in sub-folder

I am working on a site which has .htaccess file in root. There is a folder named babynames. This folder also has .htaccess file. I need the code to redirect from NON WWW to WWW for this folder. ...
0
votes
0answers
15 views

Proper redirect/“Bounce” feature in Outlook with verbatim recipient headers?

I am used to the bounce feature from mutt (using the "b" command) and Mozilla Thunderbird (via the "Mail redirect" add-on). I couldn't find an equivalent in the Outlook that is part of Office 2016. ...
-2
votes
3answers
73 views

Ls and input redirection

I'd like to redirect contents of a file to ls command input: ls -l < /home/john/1.txt where 1.txt content is just: /etc I expected ls to list the content of file defined in /home/jonh1.txt - ...
1
vote
1answer
13 views

Nginx default configuration file issue

I'm using NGINX as a proxy server at port 80 and 443 for SSL, Apache at port 8082, and Varnish at port 81. The reason for using NGINX is to send HTTP and HTTPS requests to Varnish and then Varnish ...
-1
votes
1answer
23 views

IPTables Ignoring Rule To Redirect Web Traffic

I am trying to do something very simple. I am trying to force all web request to go to my local webserver. I start by activating said webserver on my Kali Linux VirtualBox machine sudo systemctl ...
0
votes
2answers
46 views

Splitting the Output of two commands in Shell script

I am using command like timeout 10 ping 8.8.8.8 | tail -2. Here I am getting output as Terminated. But I need the last two lines of ping. Can any one please tell what to do
0
votes
3answers
60 views

How to record stdout and stderr with different tags in syslog?

I can redirect both stdout and stderr to logger this way: ./myprog 2>&1 | tee /dev/tty | logger but I would like to be able to tag each log entry with "myprog-out" and "myprog-err" based on ...
0
votes
1answer
35 views

Why would an Nginx HTTP to HTTPS redirect not work for the www subdomain

I configured NGINX to redirect all HTTP traffic to HTTPS like this: server { listen 80 default_server; listen [::]:80 default_server; server_name domain.com www.domain.com; return 301 ...
0
votes
1answer
274 views

Advanced Port redirection Windows Firewall

I need to redirect some ports on Windows. What i want is to messure the traffic on a specific port (445, SMB). My proxy runs on the same machine. The problem is i cant change the port 445. So my ...
0
votes
0answers
133 views

Browser redirects to router login page after router reset

So today I was just studying online classes as usual and noticed extremely slow work of the internet. I tried to reset my router and that's when the problems appeared. Now every time I try to connect ...
0
votes
1answer
27 views

How can some terminal programs ignore redirections and pipes?

I've been fiddling with my network card tonight, when I noticed something when I run ip link help. Here are two cases when I noticed something different: ip link help | grep set and ip link help &...
2
votes
1answer
123 views

Nginx: How to avoid server_name duplicate warning

I serve a site from nginx that is available both with internal host names as well as external ones. I want to force external access to use https, but keep http for internal access (because I can't get ...
1
vote
0answers
14 views

Call to API on Magento driven website does not work anymore after change to http/https redirection [closed]

A customer asked me to install a tls-certificate on his web server and make for http->https redirection. After installing the certificate and adjusting the rewrite rules as follows everything seemed ...
1
vote
1answer
27 views

Website redirects to old hosting on computer but to new hosting on phone

I recently migrated the DNS settings of my website to a new hosting provider (Google Firebase). After 48 hours, the website gets indeed redirected when I visit it on my phone. On the computer however ...
0
votes
1answer
100 views

Pipe stderr to file and screen without redirecting stderr to stdout

In a bash script I'd like to execute a command while piping the stderr to both a file and to the terminal. However, I want stderr to stay on the '2' file descriptor so that I can parse it from an ...
0
votes
0answers
8 views

Apache “301 Redirect”in Htaccess doing Substring Matching

I am currently in the process of assisting in the transition of an older CMS to a newer CMS. As part of that, we have many redirects to set up. We decided to load these in the .htaccess file, so they ...
1
vote
1answer
228 views

Fake “.dev” domain added to hosts file for development purposes redirects to HTTPS in Chrome on Windows even when local dev server is not active

I am building an Express.js app locally. In order to test this in something other than localhost, I added the following entry to my hosts file: 127.0.0.1 mynewapp.dev Without even starting the ...
1
vote
0answers
35 views

How to redirect the output of a running process to a log file?

When running a long running task in a command prompt, it's possible to redirect the output to a log file (fe for storage or later analysis). However, I started a few long running tasks this evening ...
0
votes
2answers
105 views

Force output to console in a batch script with output redirected to a file

I have a batch file that among other things sets up the environment and does a build. Both stdout (script output) and stderr (compiler errors) are redirected to separate files. Is it possible for a ...
2
votes
0answers
130 views

Changing the TCP Destination address using WinDivert or PyDivert

I'm trying to "route" TCP traffic by using WinDivert to change the Destination Address (and port) of certain outbound traffic. I began with using PyDivert as I am a total and complete programming ...
79
votes
1answer
6k views

Is redirection with `>>` equivalent to `>` when target file doesn't yet exist?

Consider a shell like Bash or sh. The basic difference between > and >> manifests itself in a case when the target file exists: > truncates the file to zero size, then writes; >> ...
0
votes
0answers
47 views

how make multiple redirection with command and fifo

I need to write a bash script in a linux machine with the follow redirection. echo commands > cmd_receives_commands > fifo > awk_parser > tcp_socket I verified that for the "tcp_socket" ...
1
vote
2answers
78 views

How does location dependent website loading work?

When I type in udacity.com in my web browser, it automatically loads https://in.udacity.com How does this work? Does the udacity.com machine redirect all requests coming from IPs belonging to India ...
0
votes
0answers
260 views

Firefox redirects localhost to an IP address

I have a problem with Firefox, which is essentially the same as Firefox redirects localhost to IP. Whenever I want to access localhost, Firefox wants to connect to an IP (10.26.X.X) which doesn't ...
6
votes
2answers
362 views

What does “>> file command” do, and how does it differ from “command >> file”?

Picking up from this highly voted comment to What does `>>` mean in terminal command?: "program before" What does that mean? Command obviously, but redirections can also be written prepended, ...
0
votes
1answer
60 views

apache redirect whatever.domain1.com to whatever.domain2.com

I'm trying to redirect from whatever.domain1.com to whatever.domain2.com, but it has to work for any value of 'whatever'. I have tried the following <VirtualHost <PUBLIC_IP_ADDR>:80> ...
0
votes
0answers
20 views

nginx drupal rewrite ?q=user to base url

I would like to redirect https://example.com/?q=user to https://example.com. Also, I would like to allow https://example.com/?q=user-info. I am configuring Nginx as my proxy and now using proxy_pass ...
0
votes
0answers
427 views

How to prevent location-based page redirection.

I am trying to access the site https://www.uspoloassn.com/ but redirect me to http://la.uspoloassn.com/ (I'm from Mexico). I have tried using different browsers, deleting cookies and using a VPN as an ...
1
vote
1answer
92 views

Redirecting/aliasing domain to localhost for development [duplicate]

How do I configure /etc/hosts so that if I go to google.com it's actually routed to my localhost:3000? I'm aware of similar questions. Here is what my hosts file looks like right now: ## # Host ...
0
votes
0answers
45 views

Redirect a single web page instead of a whole domain on local machine

So, I have a local application that makes a requests to an external web site like http://files.website.com/files/filename I don't want to redirect all of files.website.com because it changes ...
1
vote
1answer
110 views

How does Twitter perform a redirect when Javascript is disabled?

I have the understanding that disabling JavaScript on a website prevents any scripts from running — I will get the site contents, raw and unevaluated. But when I disable JavaScript (on Chrome) on ...
0
votes
1answer
41 views

Use sub-domain of domain in another server

I have two hosting services. One is already in use and has domain example.com. It also has a sub-domain called order.example.com. Second hosting service is under Amazon (EC2). How can I use order....
0
votes
1answer
286 views

Chrome redirect URL

Is there a way to force chrome to redirect certain websites? Preferably without extension. I want to do someting like www.website.com/es/whatever -> www-website.com/us/whatever and something like ...
0
votes
1answer
55 views

Block specific hostnames in Virtualbox guests

Is there a way to block specific hostnames from being accessible in Virtualbox guests? For example, I want to block all access to superuser.com or stackoverflow.com in the OS running in a Virtualbox ...
0
votes
1answer
452 views

Too many redirects on Magento Installation - Nginx/centos

I have a Magento Installation version 1.9.3.1. Until yesterday It was working fine, but now the frontpage is not working with the error - Too many redirects. On further checking in the console(...
1
vote
0answers
255 views

ebtables emulate “redirect” rule in brouting

I want to be able to redirect all traffic which have a specific destination IP (say 192.168.168.192), passing through a software bridge on Linux (br1), to localhost. As far as I understood I need to ...
-3
votes
1answer
46 views

How do I redirect a URL to another URL on my network?

I want to redirect a URL to another URL when accessed through my network. For example, www.youtube.com to www.mywebsite.com(hosted on my local server). I also and always want to give the option of ...
0
votes
0answers
309 views

Apache rewrite with special characters like a question mark in the URL

I have virtual host configuration as below. <VirtualHost *:80> ServerName my.example.com RewiteEngine On RewriteRule ^/env/test?www_cert http://mytest.example.com/cert.html [R=301,L,NE] ...
1
vote
1answer
341 views

OpenWRT port redirection

I have an OpenWRT router. What I need to achieve is a port redirection within my LAN zone. What I mean is, every time I hit local address on port 40413 it should to be redirected to 192.168.1.111:...
3
votes
1answer
2k views

Chrome redirecting http -> https

I have two instances of chrome running (two different user profiles), in the same machine. In one, typing http://localhost:8000 redirects to https://localhost:8000. In the other instance, the ...
0
votes
0answers
26 views

Different Redirection Results

When my brother uses any of his browsers to try to go to olbert.com, or www.olbert.com, he gets redirected to a non-existent site (which was a valid site I used to operate). This occurs in both ...