Questions tagged [redirect]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
28 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
24 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
15 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
66 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
21 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
43 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
26 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
15 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
71 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
28 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
39 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
50 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
32 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
24 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
26 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
232 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
179 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
88 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
100 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
58 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
38 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
141 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
0 answers
51 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
0 votes
0 answers
26 views

How to redirect entire root document to https://www version of the website using nginx

How can I get non www version to redirect to www version But to not affect my subdomains PS. I am using ssl strict comunication with cloudflare on the system nginx and fastcache cgi you can see my ...
Crypto Coupons's user avatar
1 vote
0 answers
99 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
57 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
66 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
485 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
56 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
37 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
282 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
20 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
98 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
155 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
51 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 vote
1 answer
133 views

Nginx how to make redirect by removing part of URL with regex mask?

I need to redirect from URL like example.com/some-urltext-nav.html to example.com/some-urltext.html (remove "-nav" only). I've tried some regular expressions in server block like rewrite ^.*?...
Oleksandr's user avatar
2 votes
2 answers
2k views

.htaccess - Redirect all URLs with one exception

I want to redirect all URLs from one domain to another. Some of the old URLs have new counterparts with specific pages to redirect to. All other URLs should redirect to the homepage of the new domain. ...
Cray's user avatar
  • 135
0 votes
0 answers
30 views

ASP.NET application not accessible through Apache proxy on Linux

I need to clarify the process of pointing a web domain to a running ASP.NET application on a raspberry pi. The application is developed and ready, and the website is up and running. I have researched ...
Alex S's user avatar
  • 1
1 vote
1 answer
253 views

htaccess: 301 redirect defined URLs to new domain and catch all redirect the rest

I want to redirect some URLs from an old domain to new versions on a new domain. The old domain uses the www. subdomain and SSL. For example: olddomain.com/audi -> newdomain.com/cars/audi ...
Cray's user avatar
  • 135
0 votes
1 answer
55 views

Configure SSL for Apache Reverse Proxy

I want to redirect HTTPS connections to my domain towards a unique subdomain using Apache2 reverse proxy. I want all the connections that come to a.example.com to be redirected towards $random$.b....
Mnemosyne's user avatar
  • 131
0 votes
0 answers
46 views

Using nginx proxy to redirect the content to another website

I'm using Ubuntu 18.04 & Nginx for my websites. I need help with the following question. Let's say (on the same server) I have the following: /home/website1/public_html/image_abc.webp When people ...
Andrew's user avatar
  • 1
0 votes
0 answers
150 views

Nginx - redirect subdirectory to a different domain without changing URL

We've set up a Matrix-Synapse chat server at the root of one domain, and we'd like to redirect the /element subdirectory to the Element client hosted at another domain, but without changing the ...
Charles Johnson's user avatar
0 votes
0 answers
237 views

How to remove part of an URL in Nginx?

I want to automatically remove /feed from the URL For Example: example.com/blog/something/feed/ to example.com/blog/something/ Could someone tell me how to do this in Nginx?
Subhash's user avatar
  • 171
0 votes
0 answers
25 views

IP of ubuntu server is accessible even after it listens on domain [duplicate]

So my problem is that my site is accessible also with IP like https://xx.xx.xx.xxx something that I don't want. I only need domain name accessing servers IP. I tried virtual hosts on apache2 to ...
newbie's user avatar
  • 1
0 votes
1 answer
88 views

Apache2 how to generate random string for subdomain

I want to issue a redirect to a new randomly generated subdomain name for every request I get. Below you can find my vhost configuration. I want to do a redirect towards a subdomain containing some ...
Mnemosyne's user avatar
  • 131
0 votes
0 answers
1k views

IIS 10 will not redirect HTTP to HTTPS after enabling HSTS

I am attempting to force end users onto HTTPS when visiting our site. I have HSTS enabled in IIS at the site and application level. I have an HTTP redirect set up at the site level to https://...
Greg Burghardt's user avatar
0 votes
0 answers
40 views

listen and redirect TCP stream to file with multi client support in the background

is there any tool I can listen on some port and accept any client and redirect the stream to a file. I know it can be done using netcat but it seems netcat cannot keep running in the background. I did ...
user3840019's user avatar
0 votes
1 answer
617 views

HaProxy redirect to internal URL

I have a configuration with two backend servers I need to redirect 301 to each server with an internal URL on HTTP. It's hard to use SSL because I can't install SSL on the Report Server in that ...
Dr.Fr05t's user avatar
1 vote
1 answer
90 views

How Can We Do 301 Redirect Of Over 200 Pages To Corresponding 200 Pages At New Location?

I need help and need it fast. We recently migrated a subdomain to integrate with the domain. Eg. https://blog.example.com to https://www.example.com/blog https://blog.example.com has a ton of traffic ...
user18571's user avatar
0 votes
0 answers
139 views

How to setup nginx to access the internal service with and without VPN by the same link?

I have a service configured for internal users with vpn http site.com:5000 and external users without VPN https site.com. A'm used two nginx on different servers. First nginx located on the same ...
SunDayMan33's user avatar

1
2 3 4 5
46