2022 Developer Survey is open! Take survey.

Questions tagged [redirection]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
7 views

PowerShell on Windows: Start-Process fails if output redirection arguments are used

Why does Start-Process fail to find the executable (not in the path) if -RedirectStandardOutput or -RedirectStandardError are specified? I.e. [X:\] Start-Process -FilePath "prog.exe" -...
user avatar
  • 101
0 votes
2 answers
35 views

301 redirect url based off of a category in the url

Does anyone know how to redirect a url that contains a parent category of a product? Basically I want to redirect a ton of products to a simple landing page that I created, so instead of making ...
user avatar
1 vote
4 answers
117 views

How can I redirect domain A to domain B without hosting, using only DNS records?

I want to redirect domain A (without hosting space) to domain B (301), but when I try https://domainA.com or https://www.domainA.com it ends with ERR_CONNECTION_REFUSED. Is it even possible to use ...
user avatar
0 votes
0 answers
48 views

HAPROXY - redirect URL and keep the same URI

Im using haproxy to do redirections. Basically I have a URL ( https://google.com// ) and I want to keep the same URI and just redirect only the base url ( https://test.com//). For HAPROXY it has to be ...
user avatar
  • 73
0 votes
0 answers
45 views

Test for no 404 error before enabling RedirectMatch?

I have a RedirectMatch to a remote server in my Apache httpd.conf file. However, sometimes the remote server gives a 404 HTTP response. Is there a way for the Apache server to ping the remote server ...
user avatar
  • 141
0 votes
0 answers
78 views

Temporary redirects (302, 307) on a static site, frequently updated

Optional background (to avoid the XY problem): I'm working on a static site which will contain URLs like www.example.com/książka/. The problem with those URLs is that when you share them / paste to an ...
user avatar
0 votes
1 answer
19 views

apache2 redirect from subleveldomain to URL

I need to redirect myservice.example.com to www.example.com/myservice My try so far: adding a new config to apache2, doing a2ensite and restarting apache2: <VirtualHost *.80> DocumentRoot /var/...
user avatar
  • 1
0 votes
1 answer
20 views

How to redirect domain to path in apache server using debian 10 OS

I am currently using "xyzservice.abcindia.local" as a website using a reverse proxy, Now what I want to achieve is, when I hit the "xyzservice.abcindia.local" this should redirect ...
user avatar
0 votes
1 answer
96 views

exec 2>&1 – execlude some command from being logged to file

I have the following in my bash script: # catch input for log-data exec > >(tee -i ${LOG}) exec 2>&1 I want to exclude one command from being written to this log file, but the following ...
user avatar
  • 43
0 votes
0 answers
361 views

Transparent proxy with iptables

So i have Been Trying to achieve a scenario but i am not being able to fix that hope someone will come up with the solution so basically what is want is I have two server publicly accessible So what I ...
user avatar
  • 63
0 votes
1 answer
195 views

Masking link with a 302 redirect through nginx not working

I'm trying to mask an affiliate link, so I want to have a 302 redirect through nginx I want to redirect all /go links to the respective affiliate link, so all link redirects would be like mydomain.com/...
user avatar
  • 103
-1 votes
1 answer
138 views

How to redirect a port and use a subdomain?

I know my problem has already been described (see How do I redirect subdomains to a different port on the same server? for ex) but as I can't make it work on my side, I ask for some help again. I have ...
user avatar
  • 1
2 votes
1 answer
34 views

Issues with Redirection and HTACCESS

I have two URLs: https://example.com/view?id=1001554 - Old URL https://example.ca/search-item.html?psid=1001554 - New URL As you can see the site changes from .com to .ca and on the new URL there ...
user avatar
2 votes
1 answer
1k views

URL redirection and TCP proxy in haproxy

In a server with only one ipv4 and running haproxy, i want to redirect an url and proxy another in TCP level, for ssl passthrough purpose. frontend https-frontend bind *:443 mode tcp option ...
user avatar
  • 21
0 votes
2 answers
53 views

NGNIX Redirect with two Parameter

So at the moment this is working for me: if ($request_uri = "/web/news.php?id=69") { rewrite ^ https://www.camper-center.ch/? last; } But now I also have URLs like /web/listing.php?...
user avatar
2 votes
0 answers
53 views

Exim: Redirect mails without spooling

I am running a personal mail server using exim that only forwards mails (and also runs a few mailman mailing lists). Unfortunately, my server’s spam protection is worse than that of the mail provider ...
user avatar
0 votes
1 answer
369 views

Redirect incoming URL request between basic authentication and openidc in apache

Redirect incoming URL request between basic authentication and openidc. I want to categorize if the request for URL is coming from "wget/curl" then i need it to get authenticated with Basic ...
user avatar
  • 1
0 votes
2 answers
226 views

Redirections, but only on a certain web browser

I have found some cheap SEO pages, whose only purpose is to promote some other sites by feeder links. On Chrome and Safari and Firefox, they show the SEO web page, but on Kiwi Web Browser on my ...
user avatar
0 votes
0 answers
29 views

Mass redirection in Nginx to an external host(s)

I have around 500-1000 URLs to do redirects over. I'm aware how to do it when redirects belong to the same host -- via nginx maps. But how to do it when some of them are local, but others are external?...
user avatar
12 votes
4 answers
4k views

How can I redirect an entire site to a single page?

I'm in the process of shutting down a site, and have replaced the old site with a single "nobody home" page at the root level of the site. Now I need to set up some redirection, so that any ...
user avatar
0 votes
2 answers
208 views

Need support to write a Nginx rule

I have deployed my front end application in 7000 ports. So I need to write a rule in Nginx so that whenever all the HTTP request from 7000 ( HTTP://example.com:7000) port will automatically redirect ...
user avatar
  • 37
0 votes
1 answer
2k views

Redirect from one domain name to another for the same website with IIS

On the same website in IIS, we have 2 bindings with domain names "old.example.org" and "new.example.org". When someone calls "https://old.example.org/abc/?xyz=123", I ...
user avatar
  • 103
1 vote
1 answer
394 views

Connections to Webmin via HAProxy are forwarded to port 10000 (HAProxy listening on 443)

EDIT Own solution at the of the question. I am using a HAProxy (on a rented virtual machine) to be able to connect to some applications I am running at home. This works perfectly fine for almost all ...
user avatar
  • 111
1 vote
1 answer
930 views

Nginx redirect url with parameters

I searched on so many threads without any luck, maybe you can help me. I try to redirect this link https://www.example.com/page/5/?s=gluten to https://www.example.com/gluten_specificarticle I tried to ...
user avatar
0 votes
0 answers
44 views

Apache redirection not working the way it is expected

I have a website say example.com and want to redirect everything from http to https. Also I have additional requirement of redirecting http://example.com (and https://example.com) to https://example....
user avatar
0 votes
3 answers
1k views

I'm getting Permission Denied when redirecting output from CMD to a text file using the logitech_dfu tool

I've gotten this output using this command you see here from the Logitech instructions, and using the ">" operator before the file names in said command. It errors, and does not place anything in the ...
user avatar
5 votes
0 answers
837 views

NGINX auth_request and 302 response status = 500 invalid URL prefix

I'm trying to make NGINX authenticate requests with OAuth2 server (authorization code flow) that will redirect client to the login page. Is it possible to use auth_request directive for that? Here is ...
user avatar
0 votes
1 answer
1k views

WordPress redirection plugin database update issue

I am using this plugin to manage my redirections on my wordpress site. After updating to version 4.7 the plugin indicates that an update of the redirection database is necessary. Doing so however ...
user avatar
0 votes
2 answers
881 views

Redirecting webhook with nginx

I am changing the domain name of my app from old.com to new.com My app is connected to external APIs that send data through webhooks, and I would like to redirect the webhooks sent to the old url, so ...
user avatar
  • 145
2 votes
1 answer
117 views

How do I remove the www from my domain URL

I am using a tomcat server and I have installed the SSL by changing strings in server.xml and web.xml file. Problem is, When I browse with domain.com, www.domain.com, in both the cases it is browsing....
user avatar
1 vote
1 answer
975 views

Nginx : port redirection

I'm using nginx as a reverse proxy and i would like to redirect the port 3000 provided through the url to the same port on the proxy pass but i'm always redirect to the 443 port when trying. Below is ...
user avatar
  • 11
40 votes
1 answer
4k views

Why can I update a file owned by root using sudo vi, but not append a line to it with sudo echo "Thing" >> file?

I would like to have script that is doing automated migrations of websites from another be able to append Includes to the /etc/httpd/conf.d/vhosts.conf file. However, when I try to use echo to put ...
user avatar
0 votes
1 answer
262 views

Nginx Redirecting URL (301) with Query String to Final Destination in Single Chain

I need help with nginx redirection I want to redirect: example.com/new-clock/?bc=search&search_id=202 to www.example.com I have used this code in nginx config rewrite ^/new-clock/?bc=search&...
user avatar
  • 41
0 votes
2 answers
7k views

Why is there a mysterious page redirection on localhost? [closed]

I migrated this question from https://stackoverflow.com/questions/59259672/why-is-there-a-mysterious-page-redirection-on-localhost on StackOverflow I am seeing something extremely weird that I have ...
user avatar
  • 109
0 votes
2 answers
51 views

Delaying creation of output files when running a longer command

Situation: I have a shell script running. Whenever a file appears in /etc/scripts, the shell script will chmod it to be executable, and then run it. It will then redirect it's error and output into 2 ...
user avatar
  • 3
0 votes
0 answers
357 views

Apache with mod_jk http to tomcat https Bad request

Dears, I have JSP application sitting on Apache tomcat. I have installed apache2.4 and enabled SSL with mod_jk and kerberos basic authentication working very well when i go to: https://mysite/App with ...
user avatar
1 vote
1 answer
93 views

nginx permanent redirect rule from one domain to another with URL params

I am redirecting the URL from one domain to another using the nginx server block like below: server { server_name subdomain.example.com return 301 https://subdomain.example2.com$...
user avatar
-1 votes
1 answer
47 views

hosting multiple websites on multiple servers with a single outside IP address

I have a single outside, static IP address. I have a domain registered (abc123xyz.com) that points to this IP address. I would like to be able to set up multiple servers (Microsoft and Linux) on the ...
user avatar
  • 267
0 votes
1 answer
1k views

NGINX redirection with CNAME

It's my first time using NGINX and I running into some trouble. So I have a A record pointing to test.example.com and I created a CNAME toto.example.com redirecting to test.example.com test.example....
user avatar
1 vote
1 answer
186 views

Coming Soon Page with Varnish : Exclude Redirection by IP

I've tried to install Varnish Cache with Magento 2. It seems to work OK (although I still have a no-cache to find and to delete apparently ...) but my .htaccess redirection for my "coming soon" page ...
user avatar
  • 13
0 votes
0 answers
60 views

When appending to a file, does bash keep that file in memory

I have a long running python program that logs to a file. I start program and let it run in the background python my-process.py >> /var/log/my_log.log 2>&1 & The free memory ...
user avatar
  • 111
1 vote
2 answers
1k views

wildcard name-based provisioning in haproxy.cfg with LE

Trying to redirect certain domain names to specific backends using catchall wildcard entry[A, A1] in haproxy.cfg (HAproxy v1.8.12 Host OS:Alpine Linux v3.9 version details [B] posted at the end in ...
user avatar
0 votes
1 answer
39 views

iis 10 on Server 2016. Redirection Why?

I have this issue with a newly created site in IIS 10 on Server 2016 I have several sites in IIS. eg testone.myhome.local testtwo.myhome.local I wanted to create a new site, so I added the DNS A ...
user avatar
1 vote
0 answers
36 views

Wordpress Redirection not working

I have a wordpress website where i applied a redirection with the following plugin: https://wordpress.org/plugins/redirection/ I set a few 301 redirections but i get the following error: This page ...
user avatar
1 vote
1 answer
978 views

Apache Redirect without include document root in rewrite rule

I have this working rule: RewriteRule ^(.*)/amp/$ https://example.com/$1?amp=1 [QSA,R=301,NC,NE,L] For redirecting https://example.com/register/amp/ to https://example.com/register?amp=1. And it is ...
user avatar
  • 346
0 votes
0 answers
65 views

Redirect SSH connexion to another port in function of (sub)domaine

Let me explain what I'm trying to do ; first, I don't want a solution like editing .ssh/config to write a default port for specific domains client side, my question is specific to server side :) The ...
user avatar
  • 131
0 votes
1 answer
642 views

How to redirect traffic sent to tap to a specific ip addr

I created a tap device using the following commands: sudo ip tuntap add mode tap tap7 sudo ip link set tap7 up sudo ip addr add 77.0.0.1/24 dev tap7 Now, I am using c++ sockets programming to write ...
user avatar
2 votes
0 answers
109 views

ipnat.conf rdr won't work solaris 10

I'm currently trying to achieve the following from the ipnat.conf configuration file on solaris 10: I need my server to act like proxy between two specific hosts (with specific ports). Lets say hostA ...
user avatar
0 votes
1 answer
362 views

Why do redirects from my subdomain end up on my primary domain?

I've got a custom subdomain that, when using Java's HttpServletResponse::sendRedirect() is getting redirected to our main (sub)domain and I'm not sure why. Users at https:// custom.example.com/...
user avatar
0 votes
2 answers
82 views

Why my https://MY_SITE.COM always redirect to the wrong server?

I have done every thing I could to solve this issue, and I could not find any solution. So, my problem is that I can't have lemeilleurducbd.com or https://lemeilleurducbd.com to redirect to www....
user avatar

1
2 3 4 5
7