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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [redirect]

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

0
votes
1answer
27 views

Autodiscover 404

After much research and testing, I have implemented the redirect rules to have autodiscover check elsewhere than on my web server. With this post, I am trying to figure out what may be wrong (could be ...
0
votes
0answers
18 views

Nginx default_server matches everything

In my Nginx configuration I have three separate sites under different subdomains each with an exact server_name match. My problem is that other subdomains also redirect to these subdomains, which I ...
1
vote
1answer
37 views

.htaccess 301 redirect remove [] from the URL

I want to remove '[' and ']' from the URLs and redirect to correct link. Here is a sample URL: /forums/garage-150/cool-cars-sightings-[archived]-7610/index127.html Needs to be redirected to: /...
0
votes
0answers
31 views

Apache redirect from http to https - SSL handshake failed: HTTP spoken on HTTPS port

I have Moodle (elearning system) web application installed on Debian 9 with Apache web server. It is a bitnami appliance, but the only difference is the folder structure. I configured redirection from ...
0
votes
0answers
20 views

Redirect for non-www to www not working for https

I am attempting to redirect all non-www requests to www with my nginx server, but despite successfully redirecting the http request (http://example.com to https://www.example.com), the https request ...
1
vote
1answer
22 views

Redirecting all pages to another domain using htaccess

I am trying to redirect all traffic to my site from a country to a sub-domain. I am using the following method to redirect the traffic. RewriteEngine on SetEnvIf CF-IPCountry "(.*)$" Country=$1 ...
2
votes
0answers
24 views

NGINX - My site has a webmail subdomain even though I never set one up. How do I redirect all webmail.domain.com requests to www.domain.com?

I have multiple nginx sites running on a Digital Ocean droplet. I've installed postfix as a relay to G Suite Gmail. I only access my email through Gmail itself. So I don't need webmail. Nor have I ...
0
votes
1answer
26 views

Redirect from http to https stopped working after update of Moodle

After Moodle elearning system update, the redirection from http to https is not working anymore. Environment: Debian 9, Bitnami Moodle appliance, Apache web server Port 80 and 443 are opened in ...
0
votes
1answer
65 views

Redirect root domain only, but keep some subdomains pointer to original root domain

I have the following config: Type Name Value A @ 192.0.2.123 A www 192.0.2.111 CNAME test @ CNAME mail @ Is it possible to temporary redirect the root domain ...
1
vote
2answers
106 views

Dirty redirects in .htaccess

text/x-generic .htaccess ( UTF-8 Unicode text ) RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # BEGIN WordPress <IfModule mod_rewrite.c> ...
0
votes
0answers
53 views

IIS 10 URL Rewrite HTTP to HTTPS redirect on same port

I would like an easy redirect but doesn't work. Original: http://exwebsite.com:8084 to Redirect: https://exwebsite.com:8084 Can u help me? The simple <add input="{HTTPS}" pattern="off" /> and ......
-3
votes
1answer
63 views

How to redirect from port 80 to port 8443 using Tomcat and iptables

I have the following iptable entry: REDIRECT tcp -- anywhere anywhere tcp dpt:http redir ports 8443 In my server.xml, I have only the following connector: <Connector ...
2
votes
0answers
34 views

HTTPS redirect, exclude script parameters from URL [closed]

My goals: 1. http://example.com/page/index.php -> https://example.com/page/ 2. http://example.com/page/ -> https://example.com/page/ 3. http://www.example.com/page/ -> https://example.com/...
1
vote
1answer
167 views

Apache: Redirect all .html AND .php requests to folder + WordPress

After a relaunch I have a bunch of dead backlinks pointing at URLs with .php or .html file-extensions. It would be nice to redirect them in bulk using .htaccess and the mod_rewrite module. The ...
1
vote
0answers
7 views

301 redirect on IIS with optional query string

I have a working 301 redirect setup for languages that looks like this: <rule name="mygreatrule" stopProcessing="true"> <match url="^productname" /> <conditions logicalGrouping=...
2
votes
2answers
52 views

Redirect https://www to https:// [closed]

I use this RewriteEngine On RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^ https://kanzan.se%{REQUEST_URI} [L,NE,R=301] to redirect ALL www to non-www, but it ...
1
vote
1answer
31 views

Nginx htaccess for query string in redmine

this is a question from Does not work nginx htaccess for special page in redmine I am repeating: I have system of management of projects redmine. Also, i have nginx, like reverse proxy for redmine. ...
0
votes
1answer
40 views

URL redirect to port [closed]

I currently access a hosted site at this URL: http://10.1.1.165:3013, but I would like to access it like http://10.1.1.165/m2m. How can I do this? I have installed the HTTP Redirect Module and tried ...
0
votes
2answers
16 views

.htaccess too many redirections error trying to redirect based on HTTP_HOST

I have two different domains pointing to my server. One of them I use it to redirect to my portfolio webpage. So, if I access through the second domain, I would like to be redirected to a different ...
0
votes
1answer
53 views

http to https redirection - apache2

I have a odoo instance running in an ubuntu16 server. Apache is acting as the front end server and is proxypassing the request to the odoo instance. I have now configured the virtualhost to enable SSL ...
0
votes
2answers
80 views

Nginx - Redirect Tor exit node IP list to a special page

I download every 30 minutes the Tor exit node list https://www.dan.me.uk/torlist/ and save it to tor-ip.conf file. My hoster does not allow to install any modules for nginx so I have to use what I ...
0
votes
0answers
30 views

map in haproxy using base and query

There is a mapfile site1.example.com/somepath https://othersite1.example.org/otherpath site2.example.com/anotherpath http://example.org/ site3.example.com/nextpath http://example.net/ site3.example....
0
votes
0answers
56 views

forward all traffic between two ports without iptables

I have read this: Port forwarding on Linux without iptables? I have a vps and I have ran lxc containers on it. I want to redirect all incoming traffic from one outside port to one port of a container ...
0
votes
1answer
38 views

Filtering and redirecting websites using dnsmasq

I've got a LAN connected to fibre router/modem for internet access, four client machines and low powered SBC running Ubuntu Server and Nginx. I'm wanting to use the SBC to filter out requests for ...
0
votes
0answers
16 views

How to track count of how many traffics get redirected on NGINX?

I want to redirect certain pages of a site (A site) to different site (B site shortened URL) and I want to track count of how many traffics get redirected (NGINX server). I have full control of both ...
0
votes
1answer
41 views

Wordpress - Non-www URL redirect to www using .htaccess file [duplicate]

I want to redirect non-www URL to www URL in WordPress. I added code for the redirect but I see that I only redirect URL internally but not accessible from the externally. I redirect to apache ...
0
votes
2answers
21 views

Apapche web server redirect unsupported ciphers to http?

We will be turning off support for browsers that only support TLS1.0 When we turn off support for TLS 1.0 on our web server can we redirect browsers that don't support TLS 1.1 or higher to a http ...
2
votes
1answer
161 views

HAProxy add some headers before 302 redirect

I'm trying to add some security headers to the responses that are directed to a specific port. I have the following configured frontend: frontend desenv_ext_1 bind *:80 bind *:443 ssl crt /etc/ssl/...
0
votes
1answer
45 views

Apache simple redirect not working

I'm trying to redirect all requests from my website to a subdir but it doesn't work. This thing is going to make me crazy and any help would be appreciate. In conclusion, I want this : http://...
1
vote
0answers
75 views

Redirect clients based on MAC address - OpenWRT/LEDE

on OpenWRT (LEDE) router I have the following redirection: config redirect option proto 'tcp' option target 'DNAT' option dest 'lan' option _name 'Proxy for HTTP' option src 'lan' ...
0
votes
0answers
68 views

remove characters from URL redirect in Nginx

I'm trying to remove certain characters from old URLs upon redirecting to a new URL. The characters are: ! * _ I have an old website: old.com/forums and a new website: new.com/community I'd ...
0
votes
1answer
80 views

How to configure HSTS redirect prerequisites using CloudFront?

The HSTS Preload List Submission website has very specific prerequisites which disallow combining protocol changes and redirects into one step (classic example - redirecting requests for http://...
1
vote
1answer
32 views

Allow directory in .htaccess

I've got this .htaccess file installed in my folder API. It is being used to redirect all requests to the api.php script. <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{...
0
votes
1answer
49 views

Nginx redirect with rewrite and regex

I need to set the following configutation in Nginx: http://my.server.com/login.aspx?param1=value1 --> http://any.other.server/path/page?param2=value1 I've tried using these snippets: location ^(/...
0
votes
0answers
26 views

nginx - Redirect POST as URL param

I'm reveiving POST data (raw text) on URL A. How to redirect it in nginx to be sent to another URL as param (probably with base64)? eg. example.com?param=$POST_DATA I need to sent this data to client-...
0
votes
0answers
19 views

Apache https to http redirect

I am trying to route https traffic through another server that has a tomcat server. Before i was just using http and was working fine. My conf reads <VirtualHost *:443> ProxyRequests on ...
-2
votes
2answers
58 views

http to https redirection multiple sites

I use IIS10 and I want to redirect all HTTP to HTTPS for all my sites. For example: http://one.test.example should be redirected to https://one.test.example http://two.test.example should be ...
0
votes
0answers
22 views

Rewrite rule not applying in IIS 8.5 with AAR

I am trying to create a reverse proxy rule in order to make a request coming in to develop-xx.website.com/nextapplication/ to be rewritten as develop-xx.website.com:5555/nextapplication/ and it does ...
1
vote
1answer
52 views

nginx modify and proxy URL

Ngnix newbie here. Please I need some help to figure out how to correctly make nginx modify and redirect (proxy?) incoming requests. The redirection seems to work ok, but the URL is not rewritten at ...
0
votes
0answers
143 views

htaccess redirection from subfolder to subdomain with url rewrite

I did not manage to find a working solution to the below explained problem neither in stack exchange nor in third party websites. I have a website with domain: example.com Any requests to https://...
0
votes
1answer
163 views

Redirecting .app domain to Amazon S3 bucket (SSL)

I'm currently hosting a static website on an Amazon s3 bucket (i.e. https://s3.eu-east-2.amazonaws.com/MyApp/index.html) and I have recently bought an .app domain which I would like to redirect to the ...
0
votes
0answers
65 views

HAproxy redirect to subsite with URL masking

I'm trying to redirect a root URL to a different URL, but mask with the original URL. For example, if a user goes to https://foo.example.com, I want to send them to https://bar.example.com/subsite, ...
2
votes
1answer
209 views

How to add parameter to nginx query_string during redirect

I want to add one parameter to $query string. Now I have this config server { server_name example.com; listen 80; return 301 http://test.example.com$request_uri; } But I want to add ...
1
vote
1answer
29 views

Something redirects from HTTPS to HTTP and it is NOT our IIS server

I need to "move" a company site from HTTP to HTTPS on IIS 7.5. I added the HTTPS Binding in IIS. However, any time I try to browse the site with "https://www.example.com" I am being redirected to "...
0
votes
1answer
18 views

Why isn't my Nginx alias directive working?

I'm using Nginx on CentOS 7 with Ruby on Rails / Puma. I would like for certain file paths to be skipped by RoR and be served directly by Nginx. I created this in my "server" block for my site ...
0
votes
1answer
81 views

Apache reverse proxy based on header

So I have a configuration for apache that is working in 99% of the cases. It is checking a header value in the request and based on that it is redirecting to the correct API version url with a 307 ...
0
votes
1answer
41 views

access specific server behind reverse proxy

I have multiple devices that are all behind a private network. I have a WAN facing server that I can call into. Is there any way for me to be able to send an HTTP request through the WAN server to a ...
0
votes
1answer
15 views

Redirect http to https on dev domain only (same server as live domain)

Providing I have 1 Ubuntu server which holds two sites (they are subdomains and also they hold code for other subdomains): house.example.com (also I have api.example.com) - production site house-dev....
0
votes
0answers
27 views

Redirect `myweb.com/1/xxxxx` to `myweb.com/1/#/xxxxx` by DNS or Nginx setting before browsers

I have a website made by AngularJS and hosted by nginx. In index.html, I have <base href="/1/" />. For some reason that we cannot fix at the moment, html5mode is disabled. In the nginx server ...
0
votes
2answers
236 views

htaccess redirect non www & HTTP with full URL

I Have these .htaccess rules: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php [QSA,L] RewriteCond %{HTTPS} !on RewriteRule (.*) ...