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
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
524 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
338 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
68 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
277 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
66 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 ...
2
votes
0answers
54 views

How to wildcard redirect a folder (not alias) in Windows?

We just moved a lot of company data in a folder to OneDrive for Business. We used to have everything located in "D:\BusinessFiles", now they're all located in "D:\OneDrive - Contoso". Since OneDrive ...
0
votes
1answer
391 views

PowerShell: **reading** input from the keyboard AND **redirecting output** to a variable/file

Sorry if my question is trivial; I'm a beginner with PowerShell. My program (plink) is expecting for an answer from the keyboard and will return some output. Is it possible to redirect the output to ...
0
votes
2answers
177 views

Why does my browser not display the index.html file when I type a directory in the URL?

I have a folder containing a web page index.html that redirects to another page. When I type in the browser the URL of that directory without specifying a file name, I expect it to open the index.html ...
1
vote
1answer
722 views

Reverse shell using netcat on windows (no -e option)

Is there any way to get a reverse shell in Windows using netcat without using -e option since it triggers UAC? I made it work from Linux to Linux by using a named pipe. I wanted to achieve something ...
0
votes
3answers
117 views

What's the point of “waiting to redirect” pages?

I noticed that many website, when they redirect you, they show a "redirecting in 5 seconds" page before the actual redirection. What's the purpose of that? I am currently implementing a links ...
0
votes
0answers
84 views

Netsh - redirect UDP traffic to VM

I have a router and a managed switch plus a couple of systems attached to those: Router: 192.168.10.200 PC1: 192.168.10.1 (Some sort of embedded Linux) PC2: 192.168.10.35 (OpenSuse) PC3: 192.168.10....
1
vote
3answers
1k views

Writing to a file from a udev RUN command

I am working on creating a udev ruleset that writes to a log file each time a certain USB drive is inserted. My ruleset, stored in /etc/udev/rules.d /99-log-USB-drive.rules, currently contains the ...
0
votes
1answer
116 views

What are methods of blocking or redirecting websites in Windows?

What are ways besides the hosts file, that I can redirect or otherwise block websites entirely through the use of software? Malwarebytes Premium is able to redirect websites it detects are bad and ...
-1
votes
1answer
99 views

Mercurial collapses lines into single line when piping output

I'd like to sort based on the output of a mercurial (hg) command. The output from hg log is collapsed into 1 line when piping to another command but I want to keep separate lines. Here's a minimum ...
0
votes
1answer
551 views

Redirect all HTTP traffic?

From the router, is it possible to, for example, display a maintenance message whenever someone tries to connect to a website? I can't find any way to do this from the web interface (I'm using a ...
0
votes
1answer
3k views

Outlook 2013 rule to redirect mail not working

I set up a rule to forward all incoming mail and it did not work. Tried the same with a redirect in the rule instead of forward. I've essentially done step by step everything in this guide, and ...
0
votes
1answer
487 views

Shell script using variable to store output redirection

I have a 'simple' script which runs a few commands, I normally just want to see a few echo's letting me know where it is up to. But occasionally I need a verbose output which shows me the output of ...
1
vote
0answers
329 views

Redirect process stdin and stdout to SSH

I have an embedded linux application with a simple interactive command line interface, running on Debian 9. I'd like to access the command line via SSH over network. something similar to this - ...
1
vote
0answers
28 views

How to hide PHP file

I have a script to redirect any external url and that works like when i add this http://my-domain.com/URL.php?url= Before the external url like google, url after adding: http//my-domain.com/URL....
0
votes
1answer
1k views

dnsmasq redirect domain to another

what i'm trying to do is redirect domain to another domain for example when i type www.google.com redirect to www.facebook.com but main idea is to keep the url the same that means http://www.google....
0
votes
0answers
157 views

wget does not follow Internet page redirection

For a concrete example of the problem, when I go to the following address in a regular browser: http://www.aaai.org/ocs/index.php/SOCS/SOCS16/paper/viewFile/13951/13240 I get re-directed to https ...
1
vote
1answer
1k views

Nginx Redirect allsubdomains to a non-subdomain url

I am currently issueing the following problem and by hell, i can't solve it. The > 20 similar threads i found with google are no help. First of all, i created a simple HTTP to HTTPS redirect, which ...
1
vote
1answer
45 views

Is there a way to redirect an http request to https locally on win 7

Just to make it clear upfront: this is not a question about server settings! I have looked at most (all) of similar questions here. I have an app which has hardcoded access to http: Currently the ...
3
votes
0answers
147 views

How to redirect traffic to my local IP? (windows hotspot)

I have question here. I have created a hotspot on my windows pc. I want all my traffic trying to access any URL to my local IP (where I am serving some login pages via XAMPP). Can anyone tell how to ...
3
votes
2answers
595 views

Can I do a complex URL and subfolder redirection without using HOSTS file?

I have a piece of legacy software that will not be updated and I have no ability to modify, that calls a specific URL for information. However, that URL has subsequently changed and no longer returns ...
0
votes
1answer
35 views

Emails redirecting

I believe that my business partner is redirecting emails that we are receiving from our websites to his personal email accounts. We would receive an inquiry and then it would disappear after a few ...
0
votes
1answer
320 views

301 redirect from non-www to www for nginx

I am using following code in my site to do permanent 301 redirect from non-www domain to www domain. My web server is nginx. rewrite ^/([^&]*)&(.*)$ http://www.example.com/$1?$2 permanent; ...
0
votes
2answers
1k views

HTTPD pretty URL for NextCloud

I've just installed Nextcloud server on my CentOS 7 distro. What I would like to have is a redirection from the "cloud.mycompany.com" to "cloud.mycompany.com/nextcloud". Also if you can tell me how to ...
0
votes
0answers
225 views

301 Redirect without hosting & DNS

I have an old website, let's call it "olddomain.com". I have an existing new website, let's call it "newdomain.com". As the old website is to be discontinued, so What I want to do is to make "...
1
vote
1answer
159 views

Disable automatic www insertion in Firefox

If you type the URL http://xyz.example (even with explicit http://), Firefox will redirect you to http://www.xyz.example, even if that site does not exist. It's a really annoying behavior. How can I ...
0
votes
0answers
48 views

How to redirect file I/O operations of a process to memory or a different file?

Let's say I have a file named file.txt and a running process with PID 12345 which sometimes reads and sometimes writes to that file. Is there any way I can fool the process with PID 12345 to read or ...
0
votes
0answers
84 views

Redirecting Subdomain To Subdomain + Port

I have a site http://sub.example.com Which doesnt show anything. because the webserver is hosted on :8080 but, since the hosting is local I cant do anything to it when there is no port. i assume the ...
0
votes
0answers
406 views

Stop redirect from https to http

I have enabled SSL on my Centos machine where the website is being hosted. But when I try to access the website https://1.2.3.4 it gets redirected to http://1.2.3.4. How can I stop this behavior? I ...
0
votes
1answer
97 views

Localhost/server IP redirect?

I have Apache HTTPD installed on my webserver. There are two websites with two different domains. Let's say example1.com and example2.com. There are couple of redirects like: http:// -> https:// http:...
0
votes
2answers
2k views

How to make a URL redirect me to a different URL

I've already seen a few things about /etc/hosts but I don't really get them, so I'm asking for help. I just synced my Hotmail account with my Gmail but I prefer to type hotmail.com (redirects to ...
1
vote
2answers
2k views

How do I redirect all HTTP requests to HTTPS when ISP blocks port 80?

I am running a HTTPS web server at home but it has one key flaw: you can't connect to it using port 80. My ISP (Cox) blocked (incoming) port 80, there is nothing I can do about it, but luckily for me ...
1
vote
1answer
273 views

redirect non-www to www for a specific subfolder only

I am trying to redirect one subfolder of my website to www if its not having www prefix. For example. If user opens example.com/sites it should redirect to www.example.com/sites Also, If user ...
0
votes
0answers
343 views

Redirect through dnsmasq on raspberry pi 3

I am currently working with a raspberry that works as a server through flask. It is connected through WiFi to external devices and all I need to do is to redirect the requests to the following local ...
4
votes
0answers
2k views

Redirect all HTTP traffic to HTTPS including subdomains

I'm trying to redirect all HTTP traffic to HTTPS including subdomains. I have the domain setup with FastComet on their Shared Hosting using cPanel. Some examples of how I like to redirect. http://www....
0
votes
1answer
256 views

Redirecting visitor with htaccess to another URL based on IP range

I've pored through other questions to find a solution, and the closest I've come is Zerobinary99's question here: How do regular expressions work in htaccess to redirect an IP range However, I'm not ...
1
vote
0answers
315 views

Apache redirect for url with multiple query string

I am trying to write a url redirection for a url with multiple query strings. https://www.example.com/site/template/?tab=ab&mediaId=2842247 to NEW URL: https://www.example.com/new-dynamic-...
1
vote
2answers
58 views

Translate local url address to full url

I have a configured VPN that let's me work from home, but I can not access the remote tools as I do when I am at work, example: At work I can type to a browser: jenkins/ from home I have to add an ...
1
vote
2answers
8k views

Redirect HTTP to HTTPS on Synology NAS

When having the Synology DSM open on port 5000/5001 I can configure it to always redirect to 5001 (HTTPS). But now I have created a custom sub-domain and a rule in the reverse proxy to route traffic ...
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 ...
0
votes
1answer
701 views

Magento2 keeps redirecting to 127.0.0.1

I've installed Magento in two Docker containers on a Mac, using the Docker install script provided by Magento. Docker provides two IP numbers, one for the host using 127.0.0.1 and a port number (32772 ...
0
votes
2answers
70 views

Setting up DNS assistance

I want to make example.com and www.example.com point to blog.example.com. I cannot test this because DNS updates on live websites are so slow and I am not sure what record is not applying as it should....
-1
votes
2answers
351 views

Unable to get HTML link to work, wrong target redirect [closed]

I'm currently trying to make a link using the <a> tag on my website to another one. But I always end up with a link that points to https://<mywebsite>.000webhostapp.com/<the href>. ...