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
1answer
946 views

SQL error: [unixODBC][Driver Manager]Data source name not found, and no default driver specified

I am running a PHP script on a RedHat server using Teradatas ODBC drivers. <?php $conn = odbc_connect("Teradata", "username", "password"); $result = odbc_exec($conn, 'SELECT count(*) FROM table');...
2
votes
1answer
2k views

How to set PATH variable using content in file?

I know I can set the PATH variable in Windows using e.g. set path="%path%;c:\directoryPath" or, permanently with setx using: setx path "%path%;c:\directoryPath" However, how can I set this using ...
0
votes
1answer
679 views

Traffic Redirection for transparent proxy

My current network infrastructure (specifically the Archer D2 shown below) doesn't support redirecting of traffic, I am looking for some device or software that will allow me to redirect all traffic ...
0
votes
1answer
2k views

Nginx: redirection to (private ip) virtual machines

I want to setup a set of web services for my colleagues from my laboratory; simple things like wiki, cms, git, etc, so that we can document our projects better. I'm an physicist, not CS, so sorry if I ...
0
votes
2answers
2k views

Why I can't redirect using `hosts` file in windows?

I want to go to www.Google.com when I enter 1.1.1.1 in my browser. So I think I must change hosts file under windows\system32\drivers\etc path in Windows to map this IP address to Google homepage. I ...
1
vote
1answer
1k views

Weird response when I ping x.x.x.255

This is my computer network configuration: C:\Users\user>ipconfig Windows IP Configuration Ethernet adapter Local Area Connection: Connection-specific DNS Suffix . : Link-local IPv6 ...
0
votes
0answers
58 views

How to configure Windows XP/windows 7 to support icmpv6 redirection?

I construct an icmpv6 redirection packet. When I send it to Linux, it works well. Then I modify its destination ip and mac address and send it to the corresponding windows XP/7 system, but windows XP/...
0
votes
1answer
416 views

Getting redirected to us.yhs4.search.yahoo.com/yhs/errorhandler : How to change that?

If there is an error in an URL or the network is down my browser is always redirected to us.yhs4.search.yahoo.com/yhs/errorhandler (possibly with a longer URL, but that is the base). I used to get ...
-2
votes
1answer
855 views

Redirect Https requests?

Being a noob for such considerations, please dont hit me... I have redirection from many domains --to--> a unique landing page of my server. This works painlessly for http Here is my question : ...
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
94 views

What does “leo://plh/” mean as part of a URL?

Someone shared a link with me, which goes nowhere. The user was on a mobile device, and the link was sent to my Gmail account. I've asked if I can share the original link (might be sensitive) and ...
0
votes
1answer
70 views

Point fake TLD to real website in browser

There is a website which I visit a lot for some purpose, and I often visit it by typing the URL into the navigation bar manually, because I know where all the documents are. However, the URL is very ...
5
votes
2answers
3k views

How can I instruct curl to reuse credentials after it followed a redirect?

I know that curl can follow redirects (the -L argument), and I know that I can provide credentials to a request (-u username:password), but I want to use both all the way down the redirect chain. How ...
1
vote
1answer
366 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 ...
2
votes
1answer
492 views

Redirect to a particular YouTube video link if a person opens any YouTube page

I want to redirect all the users in my WiFi network who ever open YouTube or any YouTube video to a particular YouTube video. It might require editing the URL. I don't know if we can call it ...
1
vote
1answer
77 views

Linux/Windows hosts file

I need redirect the domain (www.pokus.cz) to my local IP address (192.168.1.100/preview) because I need to make a test of my new web pages. I read that it's possible with add lines in /etc/hosts/ When ...
0
votes
0answers
221 views

Firefox redirecting to spoof ad sites (NOTE: this is not the usual Firefox redirect questio)

Please read fully before downvoting or flagging as a possible duplicate! This is not the standard Firefox redirect question—I've searched for some time and cannot find anything about this one. ...
6
votes
1answer
2k views

What is Caret-At (^@) under emacs?

I'm use to seeing Caret-M (^M) under Emacs. But below, I'm seeing Caret-At (^@): The file was created by running the Crypto++ test program on OpenBSD with the command ./cryptest.exe > cryptopp.txt....
4
votes
1answer
2k views

Repeating Chrome extension error “failed to redirect”

Occasionally, when opening a wikipedia page I get this type of error in Chrome: Warning: This extension failed to redirect a network request to http://www.wikiwand.com/en/Lymphoma because another ...
0
votes
1answer
639 views

batch file opens new command prompt - how to redirect new command prompt to a file?

tia, but I'm wondering if there's a way to redirect a tomcat startup.bat call into a text file. Here's my situation: I open cmd, navigate to the needed directory, and call 'startup.bat' This opens up ...
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-...
4
votes
1answer
342 views

Wget - Saving a file to a local directory named after link

I'm new to using wget, so I hope this is not a dumb question : How can I save a file to a local directory that has been named after the link to the file ? It does not seem to work if a redirection ...
0
votes
1answer
602 views

Windows 7 Remote Desktop Connection - Manage 1111 Errors In System Log

I have a Windows 7 Pro 64-bit machine that acts as a host for several remote Windows 7 Pro machines that connect to the host machine using the Windows 7 Remote Desktop Connection client that ships ...
4
votes
1answer
662 views

Cannot redirect .exe output to file

I'm trying to capture a program's output and then write it to a file. Running MyFile.exe -args > foo.txt gives an empty file. The same goes for MyFile.exe -args > foo.txt 2>&1. If I run ...
0
votes
0answers
477 views

cat > $FILE_NAME << EOF - Explanation of the inner workings

I know what this one does, I learned "pattern like" and just works. I also know: that > is a redirect to a file that << is also a redirect to file see below EOF is just a placeholder, when ...
3
votes
1answer
21k views

Proper Apache redirection from http to https

I set up a new virtual host for a new site on my server, but it's acting strangely despite having the exact same settings as my original site. I want all requests to be redirected to HTTPS, simply ...
1
vote
0answers
184 views

How do I undo an apache2 ubuntu HTTP HTTPS redirect?

I've got an apache2 instance running, with HTTPS redirect running: <IfModule mod_ssl.c> <VirtualHost *:80> ServerAdmin support@myco.com DocumentRoot "/var/www" ServerName www....
1
vote
4answers
477 views

How does piping/redirection in Linux work exactly?

I have these three examples of redirection stdin/stdout, only one of them is working the way it is intended to. I would love if someone can explain that to me. The goal is to sort the contents in ...
3
votes
1answer
253 views

Enable Gitlab link redirects for slack

We're running a self hosted Gitlab instance and using Slack for communication at work. I've run into some issues when trying to follow links to our Gitlab instance posted on Slack (by web-hooks in ...
0
votes
1answer
243 views

Firefox redirects the URL [duplicate]

Few months back, kickass.to changed to kickass.so and when I used to type kickass.to and enter, Firefox was redirecting me to kickass.so. Now kickass.to is back in action and kickass.so doesn't exist ...
7
votes
3answers
4k views

How to redirect output of a command to a file when the command will prompt user inputs?

I have a command which will prompt user for some inputs and then output the result to the terminal. I typed the command like below to redirect the output to a file: $the_command > abc.txt But it ...
0
votes
2answers
3k views

Why wget fails with 'https: Host not found' on Windows?

I'm trying to use wget on Windows 8.1 prompt. I installed wget.exe in the folder System32 and run wget on cmd. But the following error appear: M:\site>wget http://wordpress.org/latest.zip --15:44:...
11
votes
4answers
8k views

Is there any way I can force Firefox to NOT cache redirects (301 and 302)?

I am a web developer, and there are many times where I have to create or alter a 301 or 302 redirect. It is cumbersome to test immediate changes in Firefox because it caches redirects, so if I change ...
0
votes
0answers
86 views

Pipeline from <filename> to <filename> in Windows CMD?

Is there a way to do this without a temporary file? I've tried with tee but that failed. Test case: >echo "foo bar" > ex2.go >type ex2.go "foo bar" >type ex2.go > ex2.go >type ...
1
vote
2answers
181 views

How to redirect output to file that has slash in name

I want to create a file named ./https://www.example.com, but the following doesn't work: [ ~]$ URL="https://www.example.com" [ ~]$ echo "Hello!" >"$URL" bash: https://www.example.com: No such file ...
-1
votes
1answer
815 views

Redirect all Browser Traffic to a Single Web Page

Simply put, I want to make a Windows 8.1 machine redirect all traffic to a page I specify. For instance, if I use Google Chrome, and type in any URL, I want the user to end up on, for example, imgur....
1
vote
0answers
106 views

How can one redirect to a new host all traffic destined for an old host?

We're moving a bunch of services, say from 1.2.3.4 to 5.6.7.8. In order to test that the new services are correctly configured, we'd like to redirect (to the new host) all traffic destined for the ...
0
votes
1answer
854 views

Extension to load a specific webpage after idle time

So I will have a demo computer set up running a specific site for users to interact with. I would like it set up so that somebody can come use it, and then walk away, and the browser will ...
1
vote
0answers
49 views

Set console width while redirecting the output

I'm trying to avoid wrapping long lines in the NetUsers output, and the output is ok using a cmd window or Console2 with 200 cols. However, if I'm redirecting the output to a file, the output is ...
1
vote
0answers
384 views

Redirecting a local network path to the local disk

I have a computer in a network that automatically tries to open a local network path, like: \\bbserver\storage\dir I would like to redirect this network directory to my local hard drive, so that ...
0
votes
2answers
289 views

Forwarding a TeamSpeak instance

I’m trying to setup up a TeamSpeak3 server on my home network "net1.mydomain". It uses an IPv4 subnet of 10.0.0.0/8 in LAN; internet access using IPv4 is possible via CGN. This renders IPv4-only-...
1
vote
0answers
126 views

DNS Redirecting in Google Chrome

The other day we were attempting to redirect traffic in my office. We wanted to redirect YouTube, Facebook, and other similar sites back to our website. Originally the plan was to just use the Hosts ...
3
votes
1answer
3k views

shell standard streams redirection order OR 2>&1 1>/dev/null vs 1>/dev/null 2>&1

Can somebody please clarify differences? Is some of those considered as best practice? If I remember correct I somehow on SO read that this 1>/dev/null should precede this: 2>&1 ls -al /...
3
votes
1answer
899 views

Run command for every line of a file in bash, passing lines as standard input

How do I pass some input to a command line by line (ie. invoke the command for every line)? xargs does not work because it passes the lines as arguments, not as standard input. The specific case ...
0
votes
1answer
1k views

Using “hosts” file to redirect

Ok, I know how to redirect a normal page using the "host" file but it doesn't work for certain pages like http://rustledjimmies.com/ or http://heyyeyaaeyaaaeyaeyaa.com/ For example, I want to ...
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 ...
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
0answers
60 views

How to manage file descriptors of a process on Linux?

I have an executable file, which is a black box for me. now I want to execute it in a protected mode that: Does not change any file on my system. Does not send any information to any other place. ...
2
votes
2answers
5k views

Random redirection to adult sites of mobile.juicyads.com

Since two days ago, almost all of my clicks open new tab and redirect to this Adult-only URL: mobile.juicyads.com/service_redirect.php?p=64686&s=124309&u=http://www.google.com Parameters p ...
0
votes
2answers
140 views

Website does not Load

The URL to this site does not load consistently while it works when using proxy. Error message are: The page isn't redirecting properly IceDragon has detected that the server is redirecting ...