Questions tagged [redirection]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
22 votes
5 answers
31k views

Prevent port change on redirect in nginx

I currently have nginx setup to serve content through Varnish. Nginx listens on port 8000 and varnish connects users' requests from 80 to 8000. The problem is, on some occasions, particularly when ...
0 votes
0 answers
18 views

Not working, GPO - Disable Offline Files on individual redirected folders

I've enabled this GPO - Disable Offline Files on individual redirected folders I've checked the registry and it's applying, but every time I redirect a folder (My Documents or My Pictures), it ...
3 votes
1 answer
4k views

Windows redirect outgoing traffic

I need to redirect the network traffic in a Windows server which is destined from the 111.111.111.111:100 address to the 222.222.222.222:100 address, for example. This would be easy with iptables but ...
0 votes
2 answers
119 views

Htaccess to Nginx redirection

I have this redirection on htaccess RewriteEngine On RewriteRule ^add_item?$ produits.php [NC,L] Now i use nginx, how to transfer it?
0 votes
1 answer
531 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 ...
0 votes
0 answers
38 views

SUBdomain redirection not working for https (apache)

I have a problem with redirecting the address: aa.bb.cc to bb.cc/aa DNS is under the control of OVH. Redirection works for http calls and redirects on a page that is https. However, if he calls https:/...
1 vote
1 answer
39 views

Redirect removing sufixes after 3 URL segmentes in Nginx

This is the URL that I need to remove the last segment (?order=asc) https://www.example.com/segment_1/segment_2/page/the_number_goes_here/?order?asc This is the code I'm trying: location ~ ^/([^/]+)/(...
0 votes
1 answer
445 views

Reverse a .htaccess redirection rule

Let me explain by example. Say, I have this redirection rule in my .htaccess file: RedirectMatch 301 ^/([^/]+)/([^/]+)/$ http://www.example.com/$2 What it basically does is, redirect http://www....
2 votes
1 answer
539 views

How to disable .htaccess redirect for a specific folder

I write the following .htaccess rules to redirect all URLs from www.a.com to www.b.com: RewriteEngine on RewriteCond %{http_host} ^www.a.com [NC,OR] RewriteCond %{http_host} ^a.com [NC] RewriteRule ^(....
3 votes
2 answers
5k 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 ...
0 votes
0 answers
150 views

Using Rank Math REgex for subfolder redirects to home

So short summary: im a SEO specialist working on a website that has over 1000 404 pages due to a translator app. The subfolders /de/ /fr/ /es/ /en/ and URL's within the subfolder need to be redirected ...
0 votes
1 answer
790 views

Google Domains & Hetzner

I have a server with Hetzner, and a few domains with Google Domains. I have an Apache server running on port 80, and a Node server running on port 8080. If my server's IP is 192.0.2.4 and my domain ...
1 vote
1 answer
308 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 ...
0 votes
0 answers
18 views

Apache Rewrite URL not working

The existing configuration of the server is as below for redirect host: animal.ca <VirtualHost *:80> ServerName animal.ca:80 RewriteEngine On LogLevel alert rewrite:trace6 ...
0 votes
0 answers
24 views

Apache : wild card redirection rules

I have the below requirement for an apache redirection. When this url comes https://example.com/first-path/index.jsp?jpc=red it should go to. https://example.com/red Where jpc is a constant value key ...
0 votes
1 answer
1k 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 ....
10 votes
4 answers
51k views

Redirect subdomain.example.org to somethingelse.com hidden to the user?

I'm not knowledgeable at all about C-NAMES, A-RECORDS, name servers and the like, so just bear with me on this one: I want to redirect subdomain.example.org to another domain somethingelse.com. I do ...
2 votes
2 answers
3k 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 ...
2 votes
2 answers
7k views

Redirecting to other internal servers based on sub domain

Here is my situation home network, windows machines, 1 external facing IP address (that allows port 80) 1 windows home server always on machine, planning on upgrading to WHS 2011 soon. several IP ...
1 vote
2 answers
57 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 ~*...
-1 votes
1 answer
41 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
1 answer
297 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
1 answer
2k 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 ...
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 ...
1 vote
0 answers
131 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
21 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
77 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/...
1 vote
1 answer
2k views

nginx + fpm + subdirectory

I have an nginx config that looks like this: location ^~ /movies { alias /var/dp.cx/movies/current/public; fastcgi_index index.php; try_files $uri /movies/index.php; location ~* \....
1 vote
2 answers
5k views

cdrom redirection fails on ILOM for Sun x4600 M2

We have been able to successfully redirect the ILOM on this x4600 M2 in the past, but for some reason now we are getting an error that says "CD-ROM image redirection failed to start": We have also ...
0 votes
0 answers
76 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....
3 votes
2 answers
2k views

Fix missing ssl-cert for subdomain www. using redirect or similar

We're using setup with an nginx on one machine and (currently) one application server on apache in the back. For multiple domains we got ssl certs, but only for the domain itself. So without ...
0 votes
0 answers
24 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 ...
2 votes
1 answer
2k views

How allow Haproxy to follow a redirection?

I always get a Bad Request (400) response from Haproxy with this configuration. Here is the frontend : frontend http-in bind *:80 mode http option httplog log debug acl cm-acl ...
0 votes
0 answers
3k 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
0 answers
208 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
1 answer
51 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 -> ...
4 votes
3 answers
1k 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 ...
13 votes
3 answers
8k 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
923 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 ...
1 vote
1 answer
3k 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....
4 votes
4 answers
11k 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 ...
46 votes
8 answers
30k views

create 'virtual file' from bash command output?

I wonder if there is a way to create a 'virtual file' from a bash output. Example: Let's say I want to email the output of mysqldump as an attachment to an external email address. I can use Mutt to ...
1 vote
0 answers
281 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 ...
48 votes
2 answers
117k views

How to quick and easy remove part of an URL in Nginx with HttpRewriteModule?

I know about the HttpRewriteModule, but I don't really know how to handle regex and I would need to redirect all URLs within a certain directory to another, specifically: From: example.com/component/...
0 votes
0 answers
489 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 ...
4 votes
4 answers
3k views

Providing DNS redirection to honeypot server for known bad domains

Currently running BIND on RHEL 5.4 and am looking for a more efficient manner of providing DNS redirection to a honeypot server for a large (30,000+) list of forbidden domains. Our current solution ...
0 votes
1 answer
35 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
137 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
607 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 ...

1
2 3 4 5
7