Questions tagged [redirect]

HTTP or HTML mechanisms used for redirecting browsers to where the actual content is located

Filter by
Sorted by
Tagged with
1 vote
1 answer
28 views

Nginx subdomain to subdomain redirect not working

The config below redirects to .another-domain.com with empty subdomain name. What am I doing wrong? server { server_name ~^(\w+)\.domain\.com$; location / { rewrite ^ $scheme://$1.another-...
Vladimir's user avatar
  • 133
0 votes
1 answer
39 views

How redirect ANY site not found in Hestia to another server - Nginx proxy manager

I want: if ANY site not found in (Hestia 192.168.0.37 server) then redirected (Nginx proxy manager 192.168.0.36) Given: Hestia server 192.168.0.37 Nginx proxy manager 192.168.0.36 Site for test ...
dr.ipkins's user avatar
0 votes
0 answers
25 views

Mask Url from path to subdomain using NGINX

I want to achieve url rewrite as such: https://documentation.domain.com/login to https://app.domain.com/login https://api.domain.com/login to https://app.domain.com/login , any sudomain with url {...
Jason The Dynamite's user avatar
0 votes
0 answers
63 views

NGINX Rewrite path to subdomain with cloudflare results in Too many redirects

I want to achieve url rewrite as such: https://documentation.domain.com/login to https://app.domain.com/login https://api.domain.com/login to https://app.domain.com/login , any sudomain with url {...
Jason The Dynamite's user avatar
0 votes
0 answers
21 views

Nginx missing trailing slash redirects to the wrong url behind proxy

We use an nginx webserver behind an nginx proxy. When i try to browse a subpath, the nginx backend webserver (something.example.local) appends a trailing slash behind the url (301 redirect) -as ...
5poharviz's user avatar
0 votes
0 answers
44 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
1 answer
32 views

How to block all requests starting with "?mode" on Apache?

Recently my website was hacked and now I have around 20000 indexed links in Google that were redirected to other sites via my website. Now I have stopped all redirects but I have too many request on ...
Ahmad Eidizadeh's user avatar
0 votes
2 answers
33 views

Path not excluded by mod_rewrite config

I am trying to roll my own vhost config to handle certbot/letsencrypt. I want to redirect anything other than requests to /.well-known to HTTPS. But the exception for .well-known is not working; ...
symcbean's user avatar
  • 21.7k
1 vote
0 answers
52 views

htaccess: I can't redirect to nested subfolders correctly on the WordPress app

I have a multilingual WordPress site that has two languages: en and tr, It's site A. I wanna put my other WordPress site inside /tr/shop/ folder, It's site B. Just need only these rules: /en/anything/...
user avatar
0 votes
0 answers
23 views

Pass requests for specified hosts throw VM

I have VPN that restrict all internet except inner resources. I don't like it and i want to install VM, connect it to VPN and redirect all requests for specified hosts to VM and get back answer. Is ...
Алексей Емельянов's user avatar
0 votes
1 answer
67 views

Redirect Error website on VPS Ubuntu "www version" redirecting to "apache default page"

Hi I am a web designer and have recently starting maintaining a VPS server I am using a Lamp VPS server running ubuntu 18 with multiple PHP websites have edited virtual host and htaccess multiple ...
SACHIN HD's user avatar
1 vote
1 answer
97 views

Apache RedirectMatch not matching double slash

I want to redirect URLs with multiple consecutive slashes (e.g. //) in the path to have only one consecutive slash, e.g. https://example.com/a//b/c/ → https://example.com/a/b/c/. My .htaccess file ...
fionn's user avatar
  • 13
0 votes
1 answer
38 views

Is possible return a static page in https virtual host using lighttpd?

It seems like redirect is not done. If I put URL https://test2/static_page in browser it works but if I put https://test1 don't redirect SERVER["socket"] == ":443" { $HTTP["...
Aprendiz's user avatar
0 votes
0 answers
31 views

Learning reason of incorrect redirect in Nginx

There's a web app url of which may vary - it's either .com or my..com depending on if a user is logged or not. However, there's an element on the main page (that can be accessed via .com or my..com) ...
Gregory Miermont's user avatar
0 votes
0 answers
53 views

Nginx Redirecting Single Question Mark Request to Originaly URI

I'm trying to redirect URI's ending in a single question mark to the same URI with the single question mark removed. Running nginx/1.21.6 Here's an example. Original Request: https://domian.com/...
jordantrizz's user avatar
1 vote
2 answers
155 views

Apache rewrite rule for a folder to a different domain

I need to redirect all requests concerning a folder to another (old) web server called www2 keeping the entire original path, for example https://www.example.org/thisfolder/maps/map.jsp?id=2345 must ...
Steph's user avatar
  • 13
0 votes
1 answer
139 views

Exchange Online redirect rule doesn't reset "To" address

My configuration goal is to forward / redirect a message going to a mailbox to an external site (its an email capture setup). I was using forwarding, which is straight forward but includes the ...
Gerard ONeill's user avatar
0 votes
0 answers
105 views

Tomcat redirects from https to http even though it shouldn't

I had to change server cert for Tomcat and that's all what I've done. Now all of a sudden it redirects browsers from 443 to 80: % wget https://example.com/example --2023-06-04 19:56:35-- https://...
LetMeSOThat4U's user avatar
0 votes
0 answers
96 views

Alias custom domain to GitHub repository for git clone

What I'm trying to do is setup a custom domain name so that it can be cloned as a git repository using git clone. For example, $ git clone https://my-domain-name.tld/ # would be cloned into my-domain-...
kwyntes's user avatar
  • 101
-1 votes
1 answer
172 views

Cloudflare DNS keeps redirecting to a wrong site on the same server

I have a strange DNS setting glitch here. We are rebuilding and migrating two old sites to a new VPS server. They coexist now as below. We use Cloudflare DNS (NO reverse proxy). Site A: aaa.example....
Acon's user avatar
  • 1
0 votes
0 answers
42 views

How do I redirect a subdomain to another internal webserver without affecting the RDP Gateway

we have a standard windows server 2022 running IIS 10 and remote desktop gateway. we use rdp.domain.com for the gateway address for external RDP Users. we would like to run another internal windows ...
Arthur's user avatar
  • 1
0 votes
1 answer
56 views

Redirect a subdirectory to external domain

I want to redirect all the entries for a certain subdirectory to another (external) domain with the "rest" of the address. I have tried something but it does not work... server { listen [...
Maxime Chupin's user avatar
1 vote
0 answers
71 views

How to redirect all pages that contain an 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 ....
Pol Senserrich's user avatar
0 votes
0 answers
30 views

GeoIP-specifing nginx redirect for multiple servers

I need redirection based on country code I get from GeoIP (ngx_http_geoip2_module), but as I see, I can't use map because I need different conditions and destination URLs for different server ...
Sardorkhuja Tukhtakhodjayev's user avatar
1 vote
1 answer
213 views

Redirect active FTP traffic to another server using iptables

Network Scheme - IP addresses are fictitious Firewall SO: Centos 6 I recently enabled two-factor authentication, using Google Authenticator, and with that transfers via SCP for some users were ...
euduca's user avatar
  • 11
1 vote
1 answer
75 views

httpd redirect one port number to another

We are trying to redirect requests on port 8555 to port 8443. In our httpd.conf file, we have the following: <VirtualHost *:8555> SSLEngine on # SSL configuration that is irrelevant to this ...
user1207177's user avatar
0 votes
0 answers
90 views

Nginx Server Block Not Redirecting Properly

I've just recently swapped over to nginx from apache2, and it seems to be handling load times much better. However, I've now lost access to my forum subdomain. Whenever I goto my forum's subdomain, it ...
Michael Griffith's user avatar
0 votes
0 answers
162 views

Redirect port 443 to another SSL configured port on IIS 10

Fist and foremost, due to limitations imposed by our service provider I can only use 1 IP address for both 80 and 443, so multiple IP address configuration is simply not an option. So, I have a server ...
Mark de Wet's user avatar
1 vote
0 answers
51 views

How to redirect using .htaccess in Apache

I am using the following .htaccess rules to redirect the url for following conditions: RewriteEngine On RewriteCond %{HTTP_HOST} ^example\.com$ [NC] RewriteRule ^$ https://example.com/page.php [L,R=...
Bvc...'s user avatar
  • 111
0 votes
0 answers
42 views

Redirect route to a totally new one with same domain Nginx

The website with this route Domain.tld/faq.php=?lang=en&id=121 need to redirect to Domain.tld/some/121?lang=en not only id=121 but any id with the old route to be redirected to the new route. ...
Savvy's user avatar
  • 1
0 votes
0 answers
39 views

NGINX - redirect userdir to another domain

I had an apache virtualhost config that redirects "http://host.domain.com/~userdir" to another host: RewriteRule ^/~(.+) http://anotherhost.domain.com/~$1 [R,L] But I'm having trouble ...
Eder Andrade's user avatar
1 vote
1 answer
384 views

Default WordPress .htaccess rewrites causes default server page to load due to no default index page present for the root URL

I could really do with some help here please. I know this is a WordPress issue now through testing. If I allow .htaccess to process rewrites on my Wordpress sites by adding AllowOverride FileInfo to ...
J O's user avatar
  • 21
0 votes
1 answer
541 views

How to setup 301 redirections in GCP load balancer?

I've setup a static website on GCP using this tutorial. So I have a bucket and a load balancer. I'm trying to setup URL redirections in the load balancer to avoid BC breaks on old URLs. I want an user ...
Gregoire's user avatar
  • 103
0 votes
0 answers
289 views

Apache Tomcat Accept HTTP and HTTPS on same port and always redirect to HTTPS

Hi I have the following connector in my apache tomcat server in the file server.xml: <Connector port="8443" protocol="HTTP/1.1" connectionTimeout="20000&...
Viktor Carlson's user avatar
0 votes
1 answer
299 views

Redirection to a different server with the same domain

If a DNS server redirects mysrv.domain.io to the IP 192.168.0.100, but there is a second server in the network, let's say 192.168.0.101, that also "reacts" to the Host-Header mysrv.domain.io,...
Dash11235's user avatar
0 votes
1 answer
104 views

Apache vHosts - Two domains, multiple subdomains and defaults possible?

after searching and try-and-erroring for a while I came to the conclusion that my problem is a bit too special for google :-) I have 2 domains and multiple subs example.org cloud.example.org wiki....
edwarddeath's user avatar
0 votes
0 answers
46 views

What's the recommended way to use GeoIP2 with a varying mirror list?

I want to setup a webserver, where every HTTP request is directly redirected to a nearby mirror. So far we used the unfortunately no longer supported Perl module Apache2::Geo::IP together with Apache'...
Erich's user avatar
  • 111
1 vote
1 answer
293 views

Trapping misformatted paths to Redirect to 404 instead of returning 403

Owing to an error long ago our company web site has been serving image URLs containing a significant amount of white space. E.g. http://www.example.com/ /assets/ProductPhotos/...
AristotleO's user avatar
0 votes
1 answer
155 views

How can I configure Nginx to redirect all traffic to my website to the HTTPS WWW version and HTTPS version for subs with a consistent URL structure

What I am trying to do is to have some clean redirects and don't make the content from the server available everywhere like is available via https://server-ip https://non-www and https://www-version I ...
Crypto Coupons's user avatar
1 vote
0 answers
216 views

Redirect a subdomain to a different subdomain using host records

I have two domains example.com and example2.com; the second domain is simply to catch a common misspelling of my name and I want to redirect everything on it to example.com. I have a number of ...
mharran's user avatar
  • 11
0 votes
0 answers
80 views

Site with subdomains in redirect loop - Nginx configuration Issues

this is the website (the website also have subdomains) nginx configuration: # You should look at the following URL's in order to grasp a solid understanding # of Nginx configuration files in order to ...
Crypto Coupons's user avatar
0 votes
0 answers
107 views

Fail2Ban redirect instead of drop

I'm trying to configure Fail2ban to redirect instead of banning, I've found plenty of posts about redirecting to a different port for HTTP traffic to display a different webpage, but I need to ...
BruceLeeRoy's user avatar
1 vote
2 answers
901 views

nginx reverse proxy with docker containers and specific nested locations

I would like to set up nginx as a reverse proxy with multiple apps on docker containers permanently residing under specific locations, e.g.: https://sub.example.com/wiki https://sub.example.com/app1 ...
user21101711's user avatar
0 votes
1 answer
86 views

Redirect rules for multiple enviroments

I have written a set of rules for 3 different environments on the same server. In a nutshell I would redirect the users to the Dev, Stage and Prod single sites. Also enforce https and www for the ...
Manoxs's user avatar
  • 1
0 votes
1 answer
46 views

Nginx custom 301 rewrite

I am struggling to find how to write this scenario 301 redirect to nginx: https://mydomain/$ to be converted https://mydomain/en_us/$ Actually I need to add "en_us" just after mydomain and ...
G. G.'s user avatar
  • 143
0 votes
1 answer
570 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
0 votes
0 answers
36 views

The "signin-google" redirect works locally but fails when publishing the app to the server

I am trying to make Google authentication enable for my web app. It works fine locally. But after I published it into my host, it failed at the callback. I have been trying several ways for five days ...
chandrasiri's user avatar
0 votes
0 answers
223 views

Postfix - redirect AND change the To: header

I want to redirect messages with postfix if they are sent from a specific sender. The redirect should be visible in the To: field. For the redirect I tried to use this header_checks rule: /^From:.*...
masgo's user avatar
  • 433
0 votes
0 answers
267 views

Drop first SYN packet with nftables

How can I drop the first SYN packet (or the first SYN/ACK reply) received by my server? I have a test VPS set up to capture and analyze malicious traffic directed to non-standard TCP ports, for ...
Stewart's user avatar
0 votes
0 answers
67 views

S3 CloudFront distribution load different bucket based on IP

I have a domain (myweb.com) pointed to one of my cloudfront distributions eg.: myweb.com -> https://web1.s3.amazonaws.com/ now based on the internal organisation IP, I would like to load a new ...
Ben's user avatar
  • 101

1
2 3 4 5
46