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.

385
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 ...
37
votes
4answers
62k views

Redirect URLs in Chrome?

Is there any extension to Chrome that will let me force a URL from a particular domain to be redirected to another domain? (E.g. Redirect http://www.google.com to https://encrypted.google.com.) Note:...
100
votes
5answers
85k views

How to wget a file with correct name when redirected?

So after some time of searching on Google and Super User (and scanning man pages) I was unable to find an answer to something that (I think) should be simple: If you go here: http://www.vim.org/...
10
votes
1answer
3k views

Is backwards redirection the same as a pipe?

In Linux if you type sort < txtfile is that the same thing as cat txtfile | sort
2
votes
1answer
2k views

IP-to-IP Redirect

How can i redirect an IP to another IP, cause currently i have a program connecting to old IP address, sadly its hardcoded into it and its impossible to change it without violating its EULA, i want to ...
58
votes
4answers
101k views

What does “2>&1” do in command line?

I know that the > sign is used for output redirection in the command line, but I'm having trouble finding something that explains the use of 2>&1 in the command line. For example: curl ...
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; >> ...
45
votes
9answers
32k views

Log rotation of stdout?

I have a Linux program which can write information to stdout and stderr. I have a shell script which redirects that output to a file in /var/log. (Via >> and 2>&1.) Is there a way to ...
41
votes
5answers
106k views

Remotely run script on Unix, get output locally?

I need to run a (Tcl, or whatever) script on a remote Unix machine, from a (local) Windows command shell, and I want the stdout/stderr of the script to show up in the Windows CLI. The exit code would ...
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) ...
29
votes
2answers
20k views

Default PowerShell to emitting UTF-8 instead of UTF-16?

By default, PowerShell in Windows seems to be outputting UTF-16 (e.g., if I do a simple echo hello > hi.txt, then hi.txt ends up in UTF-16). I know that I can force this to my desired text ...
10
votes
1answer
15k views

Redirect Domain Name to Localhost

I have a linux test machine which I would like to run a copy of a production webserver. This is a legacy application which does not use a property file for its server name. Throughout the application, ...
10
votes
2answers
929 views

How to avoiding losing your current browsers websites when being redirected by wireless login pages

It is common for public Wi-Fi access points to include login pages, even at times, when they’re free (i.e. Starbucks, many airports, hotels, etc). I’m often in a situation where I’ll open up Chrome/...
7
votes
2answers
10k views

How I could redirect all my traffic to the TOR network?

I need to redirect all my traffic to the TOR network. I have just installed Vidalia, but I think that I have not correctly configured my Tor-client. I have a Java desktop client that has to access a ...
2
votes
1answer
35 views

how to host multiple pages from diferent domains all together?

I create landing pages in order to launch PPC campaigns for my customers. However, I would like to host them all together under a sub-domain of MY website. For example: I want that someone who ...
2
votes
2answers
2k views

Proxying fake domain to a localhost port

I'd like to do much the same thing described at Redirect Domain Name to Localhost for web app development purposes, but with the twist that I'd like requests to fakedomain.com:80 to be routed to ...
0
votes
1answer
233 views

What is the difference between redirection 2>&1 1>file.txt and >a.txt 2>&1?

What is the difference between redirection ./prog 2>&1 1>file.txt and ./prog >a.txt 2>&1? It looks that ./prog 2>&1 1>file.txt doesn't save stderr to file but this ./prog ...
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:/...
12
votes
2answers
19k views

Disable 302 Redirects in Firefox

I need to temporarily disable 302 redirects in Firefox. How can I do this? I tried going to tools > options > advanced > general > check warn me when sites try to redirect or reload the page, but that ...
4
votes
3answers
29k views

How can I redirect “localhost” to another local IP?

This is my situation: Two computer under the same router, 192.168.1.101 and 192.168.1.102 This is what I like to do: On 192.168.1.101, while accessing port 22 with localhost, it directs the traffic ...
12
votes
2answers
25k views

How to redirect output to a text file and the console (cmd) window at the same time?

How can I redirect output to a text file and the console (cmd) window at the same time?
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 ...
7
votes
3answers
10k views

How to redirect to stdin of a running bash shell?

Theoreticly, if I know the pid of the bash shell which is running, I can run a cat whose stdout is redirected to the stdin of that shell. It seems to be as if I type something on that shell. ...
7
votes
2answers
10k views

In Firebug, how can I stop a redirect?

In Firebug, how can I stop a redirect? I want to examine and edit a webpage before it redirects. Under the Net tab, using Persist I can see all the GET including the previous pages and the redirect ...
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, ...
4
votes
2answers
7k views

Firefox: Disable window.location on website

I'm trying to prevent a certain site from being able to use javascript to redirect the browser to another page. The script in question is an inline script so Greasemonkey and adBlock can't do ...
3
votes
1answer
1k views

http Redirect to https Sometimes Leads to “this page contains other resources which are not secure”

In Chrome (though I may have seen similar behavior in other browsers), type in http://www.google.com. You will always be redirected to https://www.google.com. Usually when I do this, I get the good ...
2
votes
2answers
14k views

Adding a domain alias in ISPConfig

ISPConfig 3 has the option to add Alias Domains in the menu under the Sites tab. The challenge is I do not understand 2 of the fields that I have to supply: Redirect Type (what is this?) Options: - ...
6
votes
2answers
7k views

Redirect 7-Zip's command-line output to /dev/null on Windows when extracting a .7z file

I have a command such as "C:\Program Files\7-zip\7z.exe" x foo.7z -y which will extract (with full paths) to the current directory. What it does that I don't want, though, is to spool out the ...
3
votes
1answer
547 views

Pipe Ubuntu Sound Output To Mac

I am running ubuntu 10.04 and would like to redirect all the sound it outputs to my mac over the network. Is there any way to do this? I would like to hear sound from the mac as well.
3
votes
1answer
148 views

Log ping and date isn't working [closed]

:START echo %date% %time% && ping -n 1 192.168.1.1 >> pingReport.txt 2>&1 echo %date% %time% && ping -n 1 192.168.1.2 >> pingReport.txt 2>&1 echo %date% %time%...
2
votes
1answer
3k views

Hostmonster Subdomain redirected to home server IP: How to ssh into home server using subdomain

I setup a home server to play with. Instead of remembering the IP address, I created a subdomain on my hostmonster personal website (http://subdomain.domainname.com) and redirected it to point at my ...
2
votes
1answer
4k views

Displaying and storing Windows Batch file output

I've got a batch file written that runs a program we've developped, passing in a number of parameters. Whilst running the program in debug mode, a large number of debug messages are output, which it ...
1
vote
1answer
7k views

Apache redirect from one domain to another domain

Like many users, we tend to register the *.com and *.net versions of our domain names to prevent nefarious squatters. So if we wanted "foo.com" we'd also register "foo.net" and have them both resolve ...
1
vote
1answer
3k views

CMD command redirection (pipes) in shortcut/link on Windows 7?

I'd like to run a Python 3 script silently on system start using a shortcut/link (.lnk) in Autostart. Python's pythonw.exe will run as windowless process with my script only if piping stdout and ...
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 ...
6
votes
7answers
21k views

Is there any way to bypass ISP-based redirection of webpages after credit finished? [closed]

My ISP has different Internet plans and some of them are limited traffic and once the monthly traffic has reached, any webpages will be redirected to a specific IP address showing that the credit has ...
3
votes
1answer
7k views

IP to IP redirection on Windows [duplicate]

Possible Duplicate: IP-to-IP Redirect I need a simple way to redirect an IP to another IP. If in HOSTS I could write 192.168.1.2 192.168.2.3 that would be great.
3
votes
1answer
2k views

Redirect one domain to other using hosts file or similar

Usually, the syntax in the /etc/hosts file is IP hostname alias1 alias2 but I want to make something like SERVER SERVER2 but I don't want to specify the SERVER IP in the file, only the host name....
3
votes
4answers
7k views

Browser redirects almost all of links to Adfoc.us

Since yesterday, most of users in our region and as far as I know, many other peoples received a lot of link redirection. most of these redirection are going to adfoc.us website. this redirection ...
2
votes
1answer
1k views

Wrong URL redirecting to search engines for all browsers (yahoo in my case)

I am getting a strange error first time. Whenever I enter a wrong URL/domain, it redirect me to following link:- http://in.yhs4.search.yahoo.com/yhs/errorhandler?hsimp=yhse-001&hspart=CND&...
1
vote
0answers
255 views

When I enter an address with https, Firefox (sometimes) changes it to http

What I did: I visited https://en.wikipedia.org./wiki/Main_Page (yes, there is a dot after TLD) I got an SSL error (because the cert isn't valid for the domain name with dot) I visited http://en....
1
vote
3answers
11k views

How to force Firefox to load Google in non-HTTPS

When I type http://www.google.co.uk in the URL bar Firefox rewrites it as https://www.google.co.uk. This is a problem for me as HTTPS is blocked on my network for content filtering purposes. Until a ...
1
vote
1answer
358 views

What is MASQUERADE made for?

A simple redirection is used on my server, with iptables rules : $ iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 13.37.42.1:80 $ iptables -t nat -A POSTROUTING -j ...
0
votes
1answer
699 views

How do I set up an OS level proxy when a specific application does not support it?

I'm running a certain desktop app (actually Youwave Android) which doesn't have any built-in proxy configuration settings. I need to get all traffic just from this app directed through a proxy.
0
votes
1answer
135 views

How can I change (locally) a hyperlink on a site to point to a different location? Opera, Windows XP

How can I change all instances of a hyperlink pointing to, say, domain_address_a, to point to domain_address_b (still a string address, not an IP address, both URLs in this case belong to the same ...
0
votes
1answer
557 views

How do regular expressions work in htaccess to redirect an IP range

I've been trying to redirect an IP range from one link to another. I can do it for a single 256 address block: RewriteEngine On RewriteBase / RewriteCond %{REMOTE_HOST} ^111\.111\.111\. RewriteCond %{...
0
votes
2answers
579 views

How to redirect every request from user to local host

My question is how to trap traffic going to 202.20.20.20 (The website IP/any dynamic input of website) and redirect to 192.168.1.10