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
0answers
50 views

Redirect Regular Expressions [on hold]

I have about 29K of url and need to redirect them (301) and i am not familiar with this. Some examples : (first is old url > new url www.example.com/abcdef_p_20004.html > www.example.com/abcdef ...
0
votes
1answer
15 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
14 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
65 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
11 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
22 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
41 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
58 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
26 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
111 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
75 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
59 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
25 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
80 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
189 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
31 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
57 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
111 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
43 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
77 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
212 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
351 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
338 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
74 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
102 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
267 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
53 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
410 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
231 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
44 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
300 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
304 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
25 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 ...
1
vote
1answer
30 views

Only last tee writes to file (possible overlap with exec?)

I try to have all my outputs redirected to a.out, except some that must also be written to b.out. I think using exec on top of tee (tee to also redirect to b.out) would be fine but tee does not look ...
3
votes
2answers
458 views

How can I redirect sound to a FIFO file?

I have a program which uses FIFO files for interacting with the user. An audio call can be made directing the output of arecord to one of the program's FIFO files: arecord -r 48000 -c 1 -f S16_LE >...
1
vote
1answer
327 views

Forward all subdomains to main domain without changing URL?

I just bought a domain, I want to redirect all of the subdomains to the main one but without the user really "knowing", if that makes sense. I use GitHub pages for hosting. What I need is as such: ...
0
votes
1answer
1k views

How to disable chrome redirecting http to http requests

So I've got a vm running and I've updated /etc/hosts on the host machine using dev to point the the VM IP. When using chrome however e.g dev:5000/some/path it redirects me to http://dev:5000/some/path ...
0
votes
0answers
53 views

URL redirection for testing purposes

I know that hosts file will bypass the DNS and redirect the domain elsewhere. But I only want to redirect some (not all) URLs from the same domain. That would test what the website would behave like ...
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 ...
0
votes
0answers
272 views

Can curl use a different basic auth header for a redirect

When specifying a username and password in the URL of a curl request. Curl automatically creates an Authorization header. e.g. curl -vk -L http://user:password@firstdomain.com Appends ...
0
votes
1answer
59 views

How can I 301 redirect from university domain subfolder to new domain

My webpage on the university domain was located at: www.example.edu/~myusername I only have the index.html inside my public_html directory in my home area on the linux server. I want to redirect ...