Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [redirect]

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

0
votes
0answers
27 views

Nginx Redirect Loop in a Letsencrypt Docker with Multiple Sites

I am getting a "too many redirect error" when I try to go to my own websites. Those websites are hosted on my server with Nginx inside a Letsencrypt Docker(Docker Hub: https://hub.docker.com/r/...
0
votes
0answers
33 views

Redirect outgoing email from postfix for testing base on destination

I have set up a testing server for a web app that sends out email notifications. Since this is a testing environment I have set up postfix to redirect all outoing email to a single testing email ...
0
votes
1answer
47 views

Point a subdomain directly to a file

I have a jar file that I would like to make easily accessible to users with a simple subdomain. Currently, they visit https://subdomain.example.com/application.jar and that directly starts the ...
1
vote
1answer
27 views

Nginx Redirect to request_uri

I want to achieve with Nginx return or rewrite option to redirect user request based on request_uri. For example, if user request page mysite.com/test.com then he should be redirected to test.com.It ...
1
vote
0answers
12 views

How to handle redirects from a reverse-proxied server mapped to a subdirectory in Nginx?

I would like use Nginx as a reverse proxy for an app, which is mapped to a subdirectory of my site. The app has its own set of locations , and must be able to issue redirects to other locations ...
1
vote
1answer
48 views

Traffic drop after HTTPS Magento

we have a Magento store, that we switched to https. Now 2 weeks after, we got a drop about 30%... What could be the cause? I followed every step that was recommended. I requested a reindex via search ...
0
votes
1answer
32 views

NGINX URL Redirection

In nginx we have been trying to redirect a URL as follows: Client hits the url: https://new.domain.com/reg?account.name=ABC&accountID.number=1234&OrderNumber=11111111&Code=2222 and nginx ...
0
votes
1answer
37 views

Redirect cnamed domain?

My client is owning a domain that has this DNS configuration : domain.com @ xxx.xxx.xxx.xxx www CNAME domain.com static CNAME domain.com I am managing the server at xxx.xxx.xxx.xxx. This server has ...
0
votes
1answer
31 views

How to point one domain to deep page of another domain with apache or htaccess

I have two domains (a.com and b.com) and a.com is running on my apache server. I want web browsers that try to visit b.com to end up at a.com/?b (transparently, no redirect, and no second virtual ...
0
votes
1answer
40 views

Nginx http to https redirect not working when listening to upstream loadbalancer

I currently have an HAProxy load balancer out front, without SSL termination, that routes traffic to a couple web servers. On the webserver, nginx terminates the SSL, and in theory provides http to ...
1
vote
1answer
58 views

Redirect http url on port 5061 to https same port 5061 on apache

I have setup https on apache configuration of my website.conf as <VirtualHost *:5061> <Directory/var/www/website.com> SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 <...
1
vote
1answer
37 views

Apache If statement not working

I have a about 25000 urls from my old site that have abc in the url. I want to use 3 DBM files in my apache conf. The goal is if the URL does not contain abc ie. http://example.com/1234.htm then I ...
-1
votes
0answers
19 views

G Suite: redirect domain root to admin console login page

I don't want to remember that in order to manage my G Suite I need to visit https://admin.google.com I don't access it often, and every time it takes me ten minutes figuring out where to start. I'd ...
1
vote
0answers
34 views

How can I reset the max-age cache control of my page being redirected ( 302 )

A few hours ago I used the following code in my htaccess to redirect the homepage to a maintenance page: Maintenance redirection RewriteCond %{REQUEST_URI} !/maintenance/index.html$ [NC] RewriteCond ...
0
votes
0answers
34 views

Excluding specific URL to be rewritten in apache reverse

I'm running an Unifi controller behind a reverse proxy (apache). All works fine, except one thing: for guest portal, after authentication, the portal sends a 302 with a non-existing url that is ...
0
votes
0answers
35 views

Why does nginx answer a request it shoudn't? NO subdomain

While answering another question I noticed some weird behavior in nginx: Although I never configured my server to listen to https://example.com without the subdomain www I can browse to it. Is this ...
1
vote
0answers
50 views

Apache .conf to redirect all http subdomains to corresponding https subdomains via wildcard alias

I need to point each http://sub.example.com subdomain to its corresponding https://sub.example.com. This is for use with WordPress multisite and my wildcard DNS records and wildcard Certbot cert. ...
1
vote
1answer
64 views

NGINX HTTP/NON-WWW to HTTPS caused too many redirects

I want to 301 redirect all non-https and non-www to https://www.example.com using the following configuration I found in another thread as the accepted answer. But it's not working for me. What works:...
0
votes
1answer
49 views

Nginx redirect certbot www to non-www [duplicate]

I am trying to redirect HTTPS www request to non-www but I can't get it to work. What line of code would I have to change to achieve the redirection? server { root /var/www/mydomain.com/html; ...
0
votes
0answers
40 views

Cant get NGINX to proxy pass origin IP address

I'm trying to get an NGINX server for a client to forward Geo-IP requests from an https: site to an http: site using proxy-pass. This site is https The GeoIP site is http, so javascript on my client'...
0
votes
0answers
18 views

Migrate Apache RewriteRule to haproxy http-request redirect

We have a lot RewriteRules in our Apache config files. Now we have to migrate these rules to haproxy. For Example: RewriteCond %{HTTP_HOST} ^app.mydomain.com* RewriteRule ^/$ https://app.mydomain....
0
votes
0answers
22 views

Nginx Redirect to non-www doesn't work like expected

I have 5 different blocks with the same config file all they redirects www to non-www but this one does the opposite redirects non-www to www. Yet it has the same config file which is this one: ...
1
vote
1answer
40 views

Nginx redirect to www

I have the same configuration on all my blocks yet only this one redirects to www while all my other redirects to non www. I think it may have to do something with the hsts that I've recently added ...
1
vote
1answer
25 views

Nginx rewrites taking precedence over redirects?

I have some redirects set up in an include file for our nginx config. I noticed the other day that some redirects aren't working, and they seem to just be the ones that are impacted by rewrite rules. ...
2
votes
1answer
32 views

What path to use for redirect in AWS Application Load balancer?

I'm reading the documentation for setting up an HTTP to HTTPS redirect in the AWS Application Load Balancer but I cannot understand what to put as path expression (by the green arrow in the image): ...
0
votes
0answers
10 views

Asp.net URL Redirect not working though test is passing in IIS

Blockquote I have asp.net web application and added a entry for URL Redirect. I tested the URL redirect in iis and the test gets passed. Here is the URL redirect rule I am using. <match url="(.*)...
0
votes
0answers
29 views

Is there any way to redirect access if proxy cache is not hit on nginx

I'm using nginx with proxy_cache. And I'm looking for the way how to redirect to upstream servers if proxy_cache is not hit, to save proxy server outbound traffic. If cache is there, return cache. ...
0
votes
0answers
47 views

Redirect URL with a subsequent direct URL as parameter has wrong port via nginx proxy

I have an existing service (MyApp) for which I wish to put an nginx proxy in front of. MyApp is directly accessible via: https://host123.example.com:8080/ The URL to access via the nginx proxy is: ...
1
vote
1answer
42 views

Mapping Old to new URL is not working in Nginx

I am moving my old Url's to the new one (it is more than 50) so I have placed the URLs in a file but the redirection is not happening. map_hash_max_size 262144; map_hash_bucket_size 262144; map $uri ...
0
votes
1answer
40 views

Nginx redirects all websites to another website

I've been facing some weird issue. I have 2 WordPress websites installed on my server. I will call them, example1.com, example2.com All 2 websites run on Nginx, PHP-7.2, MariaDB and Ubuntu 18.04. ...
-3
votes
1answer
34 views

Redirect DNS to specific path

A given client needs to point a domain to my IP address. The problem is that when accessing through this subdomain it needs to "drop" at a certain URL. For example: sub.domainofmyclient.com => ...
9
votes
1answer
330 views

Nginx simple redirect of products from old to new category

I'm making redirects of products from old to new category. I've managed to make it work with following rule: rewrite ^/old-category/(.*) /new-category/$1; But I want to know when should I use "end ...
2
votes
1answer
47 views

Nginx: redirect non-www https to https://www

I'm having some issues when trying to redirect https://example.com to https://www.example.com. It simple gives me a redirect loop. This is my site's nginx configuration I had prior to the changes I ...
0
votes
0answers
34 views

Nginx redirect without using a port

I am using a nginx to redirect from several http services with IP:PORT to a https domain. Now I need the nginx to redirect only: http://IP to https://DOMAIN and open it in Browser with: https://...
0
votes
1answer
140 views

nginx “ERR_TOO_MANY_REDIRECTS” after add ssl

After i add Let's Encrypt certificate to my website with CertBot i get ERR_TOO_MANY_REDIRECTS when i try to visit the domain of my website. some info : -mywebsite build with django, nginx and ...
0
votes
1answer
33 views

Add or do not add WWW hostnames to SAN certificate

My setup is as follows: 100+ websites Each website has two host headers any.com and www.any.com Requests for www.any.com are redirected to any.com without changing protocol Some of these websites ...
0
votes
1answer
151 views

htaccess: How to redirect to 404 if url parameter is missing or invalid?

Assume the following folder structure on the webserver (Apache): https://somedomain.com/parentfolder/childfolder. Using .htaccess, I'd like to display the childfolder and any of it's children (files ...
1
vote
1answer
20 views

Apache Rewrite not working

I have a very strange thing happening in my apache2 setup. I just want to redirect HTTP to HTTPS. I have tried all possible ways, like this: RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^/?...
0
votes
1answer
122 views

F5 BIG-IP monitor to detect http to https redirects

We have an F5 BIG-IP load-balancer we use in front of a web application hosted by several identical servers. The application listens on port 443 for SSL/TLS requests and port 80 for http requests. ...
0
votes
0answers
30 views

www redirection sends to the wrong vhost

I've got a VPS setup with apache and a few websites on it. DNS wise, I've got it like so: mainsite.com. -> A -> 1.1.1.1 www.mainsite.com. -> CNAME -> mainsite.com. secondsite.com. -> ...
0
votes
1answer
30 views

How to point one domain to other domain

We have one site www.abc.com which is hosted on server A and a redirect has been set up on this server which redirect this site to www.xyz.com/reports. www.xyz.com is our sitecore site and having one ...
1
vote
1answer
160 views

Why are Apache Rewrite Conditions not working?

I tried to perform a redirect writing in .htaccess file: RewriteEngine on RewriteRule article-1 www.another-site.com/article-1 [R=301,L,NC] and it works correctly. Anyway, when I add a rewrite ...
0
votes
1answer
36 views

Same nginx default file works on one server, but not the other?

I am trying to write a "catch all port 80 and force 443" for various different domains and sub-domains that we have. For this I am trying to use a wildcard like so: server { listen 80; ...
-1
votes
1answer
101 views

domain name to virtual directory IIS

Our company hosts our own website on a leased server (windows 2012 R2) To access it, we can use the IP (http://159.68.xxx.xxx) or the domain name we purchased (www.example1.com), which is simply a ...
0
votes
0answers
40 views

Serve content from a port like a Apache2 directory

I have a Node.js/Express website running by port 3000. I would like to serve it as a land page of my server by the root (/) not using the port. I have a few limitations as I have also in the same ...
8
votes
1answer
666 views

HSTS and double redirect

I manage a little website in a shared hosting LAMP environment: this basically means the only thing I can edit is an htaccess file. I wanted to add HSTS support (and I did it), but, when I tested my ...
0
votes
1answer
97 views

IIS connection reset after redirecting http to https

I'm getting a connection reset error in browsers when I redirect a URL from http to https. I'm trying to locate the issue and have looked in C:\Windows\System32\LogFiles\HTTPERR and see only ...
0
votes
1answer
43 views

Nginx HTTPS redirect loop with multiple domains

I know that there are other questions with similar topics, but I can't find a solution anywhere that solves my specific problem. The difference here is multiple domains with different sites. I have ...
-1
votes
3answers
83 views

Apache Virtual Host redirect from https subdomain to subdirectory

How do I redirect requests coming to https://blog.example.com to https://example.com/blog? Reading the apache docs on when not to use the rewrite mod, I tried a simple redirect e.g. Redirect https://...
2
votes
1answer
29 views

Nginx - Redirect old links

Let's say that i have thousand of old links that i want to redirect, all old links are like mydomain.com/1234-article-slug-name and the new links are like mydomain.com/article-slug-name. I want to ...