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.

0
votes
1answer
70 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
21 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....
386
votes
17answers
262k views

How can I make Chrome stop caching redirects?

I am working on a web application that is using redirects (for pretty URLs). I am trying to debug logic in the way the redirects are working. However Google Chrome keeps remembering the redirects and ...
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 ...
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 ...
-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 - ...
0
votes
3answers
9k views

Exchange 2013 Blocking redirect of OOF messages to external

on the Exchange 2013-cluster I have a problem with redirect of OOF messages. Users who redirect all incoming emails to an external address per inboxrule, get all email in the targetmailbox except OOF ...
1
vote
2answers
4k views

error in script (bash): ambiguous redirect

I'm rewriting a simple script, CopyScript.sh, I wrote a few years ago to copy contents from my NAS to a USB disk. #!/bin/bash SYNCPATH="/volume1/" SYNCPATHTO="/volumeUSB1/usbshare/synology-may-2015-...
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. ...
4
votes
4answers
6k views

How can I prevent Microsoft Online login Portal from redirecting to an old SSO page?

I used to work at a company with an Active Directory, but I no longer do. I now work at another company which uses Azure, but doesn't use Active Directory or Outlook etc. Whenever I try to log into ...
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 ...
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. ...
24
votes
4answers
72k views

Prevent automatic redirects in Firefox

Firefox used to prevent automatic redirects and have a button you could use to opt-in to a redirect. However, a update a couple of months ago eliminated this feature and now Firefox (version 35) ...
0
votes
4answers
6k views

How can a batch file overwrite contents of output each time?

I have this batch file below, which is a simple emulation of Unix’s head command – it will read the first COUNT rows from the input .csv file (named as a command-line parameter). However, unlike the ...
-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
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
2answers
47 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
1
vote
1answer
3k views

Redirect all URLs except one in lighttpd

How can I use mod_redirect in lighttpd to redirect all URLs except one to another URL? Example www.dontredirect.com would not be redirected at all, but all other URLs like www.foo.com or www....
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
279 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 ...
1
vote
0answers
217 views

Redirecting All Requests - Linksys Router

I currently have a Cisco WRV200 Wireless-G VPN router with RangeBooster, with that I've created an Access Point and set up a small Local Area Network. This Local Area Network obviously has no access ...
0
votes
0answers
134 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 &...
37
votes
5answers
70k views

How to track url redirects in the browser?

When I type http://example.com/load/ in my browser and press ENTER, this website redirects me to http://example.com/load/1/, from there to http://example.com/load/2/ and then I finally landed on http:/...
1
vote
2answers
3k views

Firefox: how to stop redirect from http:// to https://

My library's OPAC website doesn't currently use HTTPS ... Trying to view it with a secure connection 'crashes' it regardless of browser. However once I accidentally tried to visit the site via HTTPS ...
2
votes
1answer
125 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 ...
4
votes
2answers
640 views

How to truncate file used to redirect stdout

I am trying to truncate a file, used for redirected stdout. For example: ping localhost>/tmp/test.log If I call rm /tmp/test.log then redirection stops but the command works. If I call truncate -...
6
votes
4answers
15k views

Can I get my browser to automatically redirect on some pages?

Is it possible to have a browser (firefox or chrome), when I navigate to a specific page, the browser automatically redirects me to a different page of my choice. I'm wondering if there is some sort ...
3
votes
3answers
763 views

Redirect to URL using short names in Firefox

My computer runs Windows XP. I have lots of intranet URLs in my company and they are generally big. For example, if I want to access sharepoint site, I have to type http://blahblah.com/sites/032/...
0
votes
1answer
2k views

Is there a Firefox Add-on for automatic redirection based on XPath?

I would like to have Firefox add-on which recognizes a website page and automatically redirects to link in the page identified its XPath. One example for this is on the news aggregator sites like ...
0
votes
0answers
9 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 ...
0
votes
2answers
766 views

Relaying a stream from OBS to multiple sites at once

I've searching a lot about this on OBS Studio forums, but the only answer I've got was: "Use restream.io". The problem is restream charges for Facebook relay, and I can't rent this service at this ...
1
vote
1answer
229 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
110 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
131 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 ...
15
votes
3answers
5k views

Do browsers change URLs of saved bookmarks in response to 301 redirection?

HTTP status code 301 is used to indicate that content has moved permanently, and that the returned URL should be used to access the requested content in future. RFC 2616 says Clients with link ...
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; >> ...
1
vote
2answers
2k views

Chrome redirect to sdsjweb.com

I was redirected to https://nuj.sdsjweb.com/f1?s=cf-0&r= by chrome during browsing today. The page displayed a thank you message. Windows defender is ON and is up-to-date. I scanned the computer ...
0
votes
0answers
48 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
262 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 ...