Questions tagged [redirection]
The redirection tag has no usage guidance.
325
questions
0
votes
1
answer
78
views
AWS Lightsail + Bitnami WordPress - Changed DNS to Cloudfare - Giving too many redirects
I have setup a WordPress website in AWS Lightsail (uses the Bitnami Wordpress). And I used the bncert-tool using the command sudo /opt/bitnami/bncert-tool to install the SSL.
I have forced www version ...
1
vote
1
answer
265
views
Why I cannot access iDRAC9 remotely?
I have a Dell PowerEdge T350 with an iDRAC9 Basic. The server is connected to a switch which is connected to a router upstream which is connected to the internet. Very simple. Both the server's NIC1 ...
1
vote
0
answers
58
views
Forward all IPv6 traffic from a specific port to an other server
This sounds like a frequently answered question, but probably I used the wrong search terms.
I have two independent Linux servers A and B. I moved an application (rsync), which uses TCP Port 4444 for ...
2
votes
2
answers
543
views
How do I redirect a specific URL/ROUTE/PATH/LOCATION to another?
Say my client (current device) wants to connect to a URL, say foo.bar.com/spam/eggs/123, how do I serve or redirect to another specified URL, say 127.0.0.1:8080, and prevent the client from reaching ...
0
votes
0
answers
33
views
Sending simulated key presses to a specific process using python script in linux
On my Linux system I have opened a Telnet session. On the other tab I am running a Python script and giving commands to the Telnet session using mkfifo file redirection. But I am not able to simulate ...
1
vote
2
answers
49
views
Nginx Redirection Rule
I am trying to redirect
https://example.com/1001/def.txt -> https://example.com/1001/1/def.txt
https://example.com/1001/* -> https://example.com/1001/1/*
location /2023/ {
if ($request_uri ~*...
0
votes
1
answer
258
views
How to redirect all pages that contain a specific word using the .htaccess file
I have a bunch of indexed pages that start with the same word and they are all 404 so I want to redirect them all to the homepage of the site. The server is Apache, so I would like to use the ....
0
votes
0
answers
158
views
Firewalld apply port redirection from rootless Podman containers to host
Is there a way to redirect ports for traffic that originates from the host or a Podman container and is destined for the host or another Podman container using Firewalld?
My use case: I am hosting a ...
-1
votes
1
answer
33
views
Windows redirection to a new Network Folder (from \\OldDirectory to \\NewDirectory)
We have relocated our files to a new folder (from \\oldfolder\... to \\newfolder\...). I would like to know if on windows it is possible to redirect all the request to the new path (because we have a ...
0
votes
0
answers
160
views
nginx rewrite for mobile site, except some extensions
We got an IIS server with two sites: www.example.com and m.example.com (for mobile). The www site has this code in the web.config to redirect to mobile site:
<rule name="ignore png" ...
0
votes
1
answer
120
views
Are 302 redirects visible to the final destination?
Consider the following scenario:
Both https://foo and https://bar redirects the user's web browser to https://destination using the Location header with HTTP response code 302
My question is, is it ...
0
votes
0
answers
19
views
PHP way to show a page depending of user PC or mobile?
i have 2 versions of a page, PC and mobile, how do a show one or other depending on User Agent?
I know that using INCLUDE but i'm a little confused so maybe a example can help me.
TY
1
vote
0
answers
76
views
How to remove number from the URL?
I have wordoress site where I am getting /1 in the URL. I have checked siteurl,homeurl,permalinks but not sure why /1 is getting added in the URL
e.g https://example.com/consulting/strategic-marketing/...
0
votes
0
answers
75
views
Linux: Edit Traffic In Transit with NetSED/IPTables
I'm trying to implement the solution to this question to edit packets coming from my server but I'm having trouble getting the IPTables rules correct.
I'm using a VPS with an external facing IP to ...
0
votes
0
answers
18
views
Forward port to serveur via dedicated machine
I have a mailserver M answering port 587 but only for a given authorized machine A. From my regular machine R, I want to contact M on 587 via A. I have full control over A and R, but but M.
Can I ...
0
votes
0
answers
50
views
Wordpress crashes Internal Redirect
I am trying to find the issue why my Wordpress installation makes a 10 times redirection and crashes the session. The hint that I am getting from the Apache logs is:
[perdir /usr/www/users/server/...
0
votes
0
answers
62
views
http to https is not working
I have done the redirection on NGINX but it still not working.
first, I need to redirect http://www.example.com to https://www2.example.com
also, redirect https://www.example.com to https://www2....
0
votes
0
answers
22
views
reverse proxy example.com/cn to cn.example.com
I have one joomla website on amazon linux2 with apache and php 7.4 as example.com and i am managing languages with plugin, like if i open example.com/cn it opens in chinese language and example.com/fr ...
0
votes
0
answers
1k
views
NGINX ERR_TOO_MANY_REDIRECTS - too many redirects error on reverse proxy
I have a Debian 11 proxy installed with NGINX. The proxy points to my back server 10.0.0.120.
The default configuration of NGINX:
#
# Default server configuration
#
server {
listen 80 ...
0
votes
1
answer
30
views
Preventing masked url redirect from outside
We have a problem that someone trying to do masked url redirection for our e-commerce. How can we deny/abort? Using IIS or Windows Server.
Main Domain: ecommerce.com
Masked Domain: myshop.com -> ...
0
votes
0
answers
112
views
How can I redirect range of ports from server to another lan device using IPTABLES
I have a server and few lan devices that are hosting custom services on custom ports. All of the devices use linux. Only the server is exposed to the internet (ports are forwarded).
I'm trying to ...
0
votes
2
answers
663
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 ...
3
votes
4
answers
4k
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 ...
1
vote
0
answers
254
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 ...
0
votes
0
answers
289
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 ...
0
votes
1
answer
22
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/...
0
votes
1
answer
86
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 ...
0
votes
1
answer
401
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 ...
0
votes
0
answers
1k
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 ...
0
votes
1
answer
762
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/...
-1
votes
1
answer
634
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 ...
2
votes
1
answer
122
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 ...
3
votes
1
answer
3k
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 ...
0
votes
2
answers
167
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?...
2
votes
0
answers
87
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 ...
0
votes
1
answer
489
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 ...
0
votes
2
answers
475
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 ...
0
votes
0
answers
40
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?...
12
votes
3
answers
6k
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 ...
0
votes
2
answers
247
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 ...
1
vote
1
answer
4k
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 ...
1
vote
1
answer
768
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 ...
1
vote
1
answer
2k
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 ...
0
votes
0
answers
185
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....
0
votes
3
answers
2k
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 ...
5
votes
0
answers
1k
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 ...
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 ...
0
votes
2
answers
1k
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 ...
2
votes
1
answer
224
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....
1
vote
1
answer
1k
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 ...