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
0answers
13 views

nginx is not redirecting 302 redirect response to https

Hi I have nginx setup to redirect all port 80 requests to use https instead: server { listen 80; ... return 301 https://$host$request_uri; } Then I have all https requests route to my ...
0
votes
1answer
20 views

How to redirect port 80 and 8080 to 443 using nginx for a Jenkins server

I am try to redirect anything going to port 80 and 8080 to 443 (https) using nginx. This is for a Jenkins server. I am using ubuntu. This is the nginx config I have at the moment: server { listen ...
0
votes
0answers
19 views

Shiny App: Redirect non-www to https://www nginx

I created a shiny app in R that I'm hosting on a server at the 3838 port. I'm totally new to this, so I just followed tutorials. However, this problem has stumped even our brilliant IT guy. My SSL ...
1
vote
1answer
20 views

nginx redirect domain a to b with parameters and sub domain

How would i redirect https://aaa.com > https://bbb.com http://aaa.com > http://bbb.com https://sub.aaa.com > https://sub.bbb.com ...
0
votes
0answers
16 views

Forcing IIS to return a 404 instead of a 403

Running IIS 10 hosting a .NET MVC 5 application, I get different errors depending on the URL: https://example.com/myapplication/thisDoesNotExist -- returns my custom 404 (what I want) https://example....
0
votes
1answer
28 views

Two sites on the same server with unwanted redirection

I have two different sites domain1.com domain2.com Problem : I only can access domain2.com by using www.domain2.com If i try domain2.com it redirects to domain1.com. Configuration files: domain1....
0
votes
0answers
18 views

Nginx - redirect traffic from specific referrer

I run a website and I want to make it so that if anyone comes to my site from facebook or google they go to mywebsite.com/facebook or mywebsite.com/google and if they come from say hackerwebsite.com ...
0
votes
1answer
37 views

Apache redirect without port number

This might actually not be possible, but trying anyway: I want to create a container image for Apache without the need to run as root. So I set up the VirtualHost to listen to port 8080 instead of ...
0
votes
1answer
29 views

NGINX - Set root to sub directory

I use Trellis from the Roots.io WordPress framework stack. It sets up a LEMP environment for me. The nginx root path is set to: root /srv/www/example.co.uk/current/web;. I can't override this, any ...
1
vote
2answers
87 views

How can I configure Apache to redirect root to a suburi in addition to https redirection?

I have an Apache webserver running a bunch of web apps. I have successfully redirected incoming http traffic to https for every individual app, but I'm having trouble routing ALL traffic coming to the ...
1
vote
1answer
30 views

Redirect all unfound links for a third level domain to site index for each language

I need to redirect all unfound pages for each language. I've created a redirect for third domain level en.mysite.it to www.mysite.it/en/ Now I need to understand how to redirect each en.mysite.it/...
0
votes
0answers
19 views

301 redirect requests that are not proxied

I've got a Wordpress app running on Apache (on blog.example.com), and an Nginx server that works as a reverse proxy (on example.com). My main goal is to have blog.example.com accessible through ...
0
votes
1answer
19 views

Apache redirect all non valid wildcard subdomains to root domain

Is it possible to redirect all 404 subdomain result to the root domain in apache2? Im using a wildcard subdomain entry in my DNS provider, and apache is set to fetch the site in the folder with the ...
0
votes
1answer
176 views

nginx: how can I redirect http to https in proxied requests?

I have the following server block: server { listen 192.0.2.1:443 ssl; listen 192.0.2.1:80; server_name support.example.com; ssl_certificate /etc/ssl/certs/support.example....
-1
votes
0answers
18 views

How to redirect pages in shared Windows hosting environment?

I have a plain HTML site, and would like to allow some additional parameters to be passed like: example.com/index.html/name example.com/index.html/age example.com/info.html/name example.com/info....
0
votes
1answer
14 views

Redirect request to a second URL if an error is encountered on first in NGINX

I'm new to NGINX and I'm trying to figure out whether I need a proxy or a reverse proxy. Here's the requirement: Create a proxy that will hit websiteA, if no error is encounter (node is not down but ...
0
votes
1answer
29 views

SSL error only when using Chrome and DirectAdmin domain pointer

I have a site that has a main domain with a valid SSL certificate and a secondary domain, which only needs to redirect visitors to the main domain. So, for the primary domain everything is set up: ...
0
votes
1answer
25 views

Permanent redirect all http requests to include www subdomain [duplicate]

I have noticed both google.com and amazon.com, redirect requests to www.google.com and www.amazon.com I am thinking of doing the same for my website which is hosted on AWS. What is the best approach ...
0
votes
0answers
5 views

Upgrade-Insecure-Requests with lighttpd

I'm using lighttpd to serve a site over HTTP and HTTPS (the two versions are identical). I do not wish to stop serving it over HTTP or to forcibly redirect users to the HTTPS version, and I do not ...
0
votes
1answer
22 views

IIS: Redirect HTTP to HTTPS for all URLs

For our website (Windows Server 2016 Datacenter, IIS 10) we use two different URLs - lets say url1.com and url2.com by using the same root directory and the same application pool. In our web.config ...
0
votes
1answer
25 views

how to auto redirect from 8080 port to 8443

I am using Ubuntu 14.04 and apache-tomcat version 6. I changed all necessary things to redirect the port from 8080 to 8443 and it's working fine, but the thing is both urls are working. I would like ...
0
votes
0answers
13 views

URL and port redirect nginx

I'm running web app in AWS EC2 from an snap at: (http://) myurl.com:3001 I installed nginx to redirect port 80 to 443 and 3001 to 443, so the url to the user becomes: myurl.com (with (https://) at ...
0
votes
1answer
204 views

Delete random numbers from link with 301 redirect nginx

I have to delete a random numbers from permalink structure of my site working on nginx server by mask: DOMAIN.COM/YEAR/postname/RANDOM_NUMBERS/ → DOMAIN.COM/YEAR/postname/ I've tried something like ...
0
votes
3answers
50 views

SSL certificate error in domain redirection

I am managing two domain names and want to redirect one to the other. I set up a domain forwarding with 301 permanent redirection from domain S (source) to domain T (target). The server on domain T ...
0
votes
0answers
22 views

Can not redirect traffic with iptables in MITM

i've been trying to make a MITM attack with Kali linux and a smartphone, using the mitmproxy tool. echo 1 > /proc/sys/net/ipv4/ip_forward arpspoof -i wlan0 -t {smartphone_ip} -r {route_ip} Then I ...
0
votes
1answer
24 views

Redirect localhost port to external ip and port

I am running macOS Mojave 10.14.6. I have an app that is looking for a service hosted on localhost:9999, but I am hosting this service on a different server at 12.3.4.5:8000. How can I setup firewall ...
0
votes
0answers
31 views

Redirecting email traffic using iptables or rinetd isn't working but http traffic is

Initial situation: I had a shared cpanel hosting account (website + email). Let's call it mydomain.com with ip: a.b.c.d The DNS RECORDS were like so: mydomain.com A a.b.c.d mail.mydomain.com A a.b.c....
0
votes
1answer
53 views

How to remove the trailing slashes from a URL with nginx

I'm trying to remove trailing slashes from urls. I searched a lot and tried some solutions but they didn't work form me. I tried this one rewrite ^/(.*)/$ /$1 permanent; but it leaves one slash ...
1
vote
1answer
34 views

Apache mod_rewrite with Redirect Dropping Authorization Header

I have some Apache mod_rewrite rules set up to redirect Maven deploys from one url/server to another. We're in the process of migrating from Nexus to Artifactory and need these redirects set up so ...
0
votes
0answers
12 views

Set a redirect in Apache to render folder static files instead of html file

I have been following this tutorial here to install swagger on my project. I created a folder with the static js/css files along with the index.html file and added .dist folder to the folder. I got to ...
0
votes
0answers
13 views

How to redirect root to a subdirectory in apache? [duplicate]

How can I redirect the root of my virtualhost to a subdirectory? I tried this, but it ended up with an infinite redirect: Redirect permanent / /hu/about.html What am I doing wrong?
2
votes
1answer
34 views

Redirect to different domain in using IIS URL Redirect Module not redirecting

I'm using IIS 8.5 with the URL Redirect module installed. My use case is that we have a defunct web site (www.xyz.com) and would like all requests to this site be redirected to another site (www.123....
0
votes
0answers
27 views

Redirecting subdomain to another server shows server's IP

Let's say I have a domain x.com which is hosted on server1. I made a subdomain sub.x.com and pointed it towards server2. All of this worked successfully, except now I see server2's IP instead of sub.x....
-1
votes
2answers
52 views

Apache redirect with HSTS

I need to redirect all for example.com to https://www.example.com with HSTS turned on. How to do it? I got configuration in vhost80 and vhost443. What to fix in this code: in vhost 80 RewriteCond %{...
0
votes
1answer
19 views

Apache redirect to wrong Vhost while redirecting to https

Problem Accessing studentmossa.domain.comresults in a redirect to server.domain.com. Short valuable information I am running Fedora 31 (kernel 5.5.15-200.fc31.x86_64) with Apache/2.4.43 (Fedora). ...
0
votes
0answers
11 views

How to force nginx to stop redirecting a certain IP to a domain?

My Nginx is redirecting servers public IP to a domain even after I removed the vhost that was doing that and reloaded nginx? I removed a vhost that had this set server { listen ip.ip.ip.ip:...
1
vote
1answer
131 views

How to set the http_referrer in a htaccess redirect?

I have a new domain for my site and want to forward the user to this new site. So I set up a simple redirect in my .htaccess file likeI have a new domain for my site and want to forward the user to ...
0
votes
1answer
76 views

Appengine app.yaml HTTPS redirect with secure flag isn't working

My application is deployed in Google AppEngine and my DNS is in GoDaddy. My app.yaml is like such: handlers: - url: /.* http_headers: X-Forwarded-Proto: https script: auto secure:...
0
votes
1answer
30 views

Redirects for website that is split on two hosting accounts

I've transferred blog part of website (example.com) to a new hosting and redirected DNS to new host. What is left over is 'special user area' with it's database, which can now be accessed only with an ...
0
votes
0answers
32 views

Simplest / cheapest method to redirect non-www to www with HTTPS for many domains in azure?

We have many www-domains pointing to an azure front-door service. Unfortunately we need a redirect, supporting HTTP und HTTPS, for naked domains to www. Binding naked domains to the front-door is ...
0
votes
0answers
8 views

Configure context path as condition for redirect rule in apache 2.4.41

Iam using apache 2.4.41, in RHEL 7 I have configured the a context path as the condition for a redirect rile in apache Eg Redirect permanent /abc/ https://dev-dummy.com/cde This works fine ,but ...
0
votes
0answers
73 views

I can't get the URL Rewrite Module to work

How to redirect in iis URL Rewrite Module this pattern: https://www.example.com/muebles/muebles-de-dormitorio/cama-cucheta-mosconi-gabinete-triliche-caoba-blanca-5536.html or this https://www....
0
votes
0answers
21 views

Redirect IP to other IP

Good Evening everybody! we have moved our website onto another server. Previously it was hosted on AWS. Now we are having the issue that we do not have access to our DNS settings due to some ...
1
vote
1answer
53 views

nginx - how to redirect depending on a range of IP addresses?

I am trying to make a site only accessible from within the local network and people from the external network will get a static page saying some other message. This is what I am trying to do but it ...
0
votes
0answers
23 views

Why ErrorDocument 401 will solve redirect error when password protect wp-admin folder?

I try to password protect the WordPress wp-admin folder in cPanel. However, after that, I will get redirect error when accessing www.example.com/wp-admin/ . I try to search online at see this article ...
0
votes
0answers
25 views

NGINX proxy_pass returning 405 on POST request

I'm trying to set up nginx as a reverse proxy to redirect POST requests from http://example.com:5318/msh to http://localhost:5000/msh. This is my config: http { server { listen 5318; ...
0
votes
0answers
47 views

Unable to redirect back to application after keycloak login

I have deployed the OIDC provider-keycloak in a k8s cluster and it is exposed as a load balancer. I'm using this along with Istio to redirect back to my application after successful login in keycloak....
1
vote
2answers
29 views

How can I forward / redirect http to a public IP with nginx?

I have a domain example.com with DNS A record pointing to a public ip x.x.x.x. I need to get all http and https requets from that server and forward that traffic to another public ip y.y.y.y. Any ...
0
votes
1answer
23 views

How to redirect ip servername to main site

Many sites have server name ip in their a records. Showing duplicate content using 302 redirect on many domain names How to make all redirect to only website server is actually using. Config: ...
0
votes
1answer
29 views

My varnish devicedetect.vcl is not working site no longer responsive

default.vcl # Default backend definition. Set this to point to your content server. backend default { .host = "127.0.0.1"; .port = "8080"; } sub vcl_recv { # ...

1
2 3 4 5
41