Questions tagged [redirection]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
103 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?
Montassar Billeh Hazgui's user avatar
0 votes
0 answers
36 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:/...
kr.sz's user avatar
  • 1
1 vote
1 answer
38 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 ~ ^/([^/]+)/(...
btgen's user avatar
  • 11
2 votes
1 answer
495 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 ^(....
alancc's user avatar
  • 183
0 votes
0 answers
148 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 ...
user1043312's user avatar
0 votes
0 answers
17 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 ...
Likhitha's user avatar
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 ...
Toji K Dominic's user avatar
0 votes
1 answer
518 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 ...
Vpp Man's user avatar
  • 103
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 ...
Csaba Toth's user avatar
1 vote
1 answer
296 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 ...
Erich's user avatar
  • 111
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 ...
Anm's user avatar
  • 203
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 ~*...
user1004883's user avatar
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 ....
Petar Cvetic's user avatar
-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 ...
Adel Chaker's user avatar
0 votes
1 answer
292 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 ...
Parakrama Dharmapala's user avatar
1 vote
0 answers
130 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/...
user8863627's user avatar
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 ...
Jean-Philippe Pellet's user avatar
0 votes
0 answers
76 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/...
Gonzalo's user avatar
  • 101
0 votes
0 answers
75 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....
Mohamed Saleh's user avatar
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 ...
Sukhjinder Singh's user avatar
0 votes
0 answers
2k 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 ...
Mendes's user avatar
  • 131
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 -> ...
Hüseyin Demir's user avatar
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 ...
Dumb_Linux_User's user avatar
0 votes
2 answers
917 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 ...
nightcrew's user avatar
4 votes
4 answers
10k 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 ...
Patryk Chowratowicz 'Zszywacz''s user avatar
1 vote
0 answers
279 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 ...
drowzee's user avatar
  • 113
0 votes
0 answers
480 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 ...
automaciej's user avatar
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/...
Najtim's user avatar
  • 1
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 ...
Akshay Bhandakkar's user avatar
0 votes
1 answer
601 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 ...
Omexlu's user avatar
  • 143
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 ...
sanjib's user avatar
  • 73
0 votes
1 answer
1k 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/...
spacing's user avatar
  • 103
-1 votes
1 answer
750 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 ...
Xuo's user avatar
  • 1
2 votes
1 answer
180 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 ...
Steve Fulton U.E's user avatar
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 ...
Albert's user avatar
  • 31
0 votes
2 answers
297 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?...
Domenico Sanfilippo's user avatar
2 votes
0 answers
99 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 ...
Joachim Breitner's user avatar
0 votes
1 answer
548 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 ...
Chandu's user avatar
  • 1
1 vote
2 answers
632 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 ...
mekineer's user avatar
0 votes
0 answers
52 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?...
karneliy's user avatar
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 ...
Jim Miller's user avatar
0 votes
2 answers
306 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 ...
aks's user avatar
  • 57
1 vote
1 answer
7k 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 ...
Jonathan's user avatar
  • 113
1 vote
1 answer
1k 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 ...
derdeagle's user avatar
  • 111
1 vote
1 answer
3k 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 ...
user1437654's user avatar
0 votes
0 answers
201 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....
Sajeesh's user avatar
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 ...
Joe Bales's user avatar
5 votes
0 answers
2k 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 ...
LooksWorking's user avatar
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 ...
user540468's user avatar
0 votes
2 answers
2k 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 ...
Buno's user avatar
  • 155

1
2 3 4 5
7