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

-1
votes
0answers
8 views

How can i redirect smtp port 25 to port 465

I have Exchnage server ,I can receive emails But I can not send emails out of the domain because Port 25 is block in ISP How can i redirect smtp port 25 to SMTPS port 465 ?
0
votes
0answers
13 views

Redirect Outside Traffic to other Outside Address Using Cisco ASA Firewall

Is it possible to send traffic from the internet to another internet address using a Cisco ASA firewall? It needs to be transparent, so that the client, using UDP or TCP behaves exactly as if it were ...
0
votes
0answers
11 views

NGINX use different try_files statement for GET and POST

I have the following location block: location / { try_files /cache/blitz/$http_host${request_uri}/index.html /cache/blitz/$http_host${request_uri}index.html $uri $uri/ /index.php?$query_string; } ...
1
vote
1answer
24 views

redirect link with question mark in htaccess

I need to redirect: example.com/wiki/?t=1234 to example.com/vb/showthread.php?t=1234 The numbers "1234" is hundreds of pages with different numbers I try in .htaccess but doesn't work: ...
0
votes
1answer
24 views

Apache configuration issue (VirtualHosts and redirection)

I have included virtualhost .conf file into my httpd.conf with the following content: root@phpbb3:/usr/local/etc/apache24 # cat ./sites-enabled/000-www.domain.com.conf <VirtualHost *:*> ...
0
votes
0answers
8 views

modern installation of Tomcat with SSL on port 443

In the computer course I'm writing I'm using Tomcat for the server. (Students learn how to set up CentOS and everything from scratch. Currently the course has them using Tomcat running on port 8080.) ...
2
votes
3answers
231 views

robots.txt is redirecting to default page

Hullo, Typically, if I type into my address bar, "oneofmysites.com/robots.txt", any browser will display the content of robots.txt. As you can see, this is pretty standard behaviour. I have just ...
0
votes
0answers
16 views

Proxy pass with host in headers causes loop redirects

Use case We need to redirect to current website (ip1 - https://host.com/path) from a new server (ip2) that will host another website under root path (https://host2.com/). In the end, this last ...
0
votes
0answers
14 views

OpenVPN - How to redirect all http requests?

I have an OpenVPN server on which I'd like to redirect all HTTP requests to a certain web server. In other words, if one client tries to access (for example. Google.com) they should be redirected to ...
0
votes
1answer
39 views

Limiting number of server methods in NGINX config file

I am trying to force a redirect for all non-www and non-https request to the https://www.example.com version of the site. It is a new site so there's no SEO implications of the redirects. I am trying ...
0
votes
1answer
27 views

Wordpress + Cloudflare SSL redirects to apache root?

We recently deployed our new website and when trying to use it over SSL with cloudflare, it redirects to the Apache root dir? I generated origin TLS certificates and downloaded those from cloudflare ...
2
votes
1answer
21 views

nginx issue with following all redirects

I have two redirects in a file at /etc/nginx/redirect.conf: rewrite /this-link https://www.google.com redirect; rewrite /this-link-too https://mail.google.com redirect; Attempting to go to http://...
0
votes
1answer
24 views

Nginx wildcard redirect everything to https non www but subdomains goes to a specific folder?

I just installed Let's Encrypt wildcard certificate and I want to use the non www as my standard regex for shorter server block. So I wish to do the following: http non www ---> https non www ...
0
votes
0answers
28 views

google analytics for url redirection

URLRedirection #WebForwarding . I'm trying to work out if it's worthwhile continuing paying for a domain name that I'm forwarding to my website. I'm not sure where to look in Google Analytics to see ...
0
votes
0answers
48 views

haproxy redirect URL path to another path

haproxy version 1.5.18 I want to redirect: /document/(.*)/(.*)/somefile => /anotherPath/somefile For example: redirect /document/20181/20182/a_good_pic.jpg => /anotherPath/a_good_pic.jpg ...
2
votes
1answer
38 views

Getting “302 Found” even after redirecting to a specific file in the .htaccess

I have an Apache server hosted on an EC2 instance which points to a domain that I own. Now, what I essentially want to get done is that the web server should return a .json file when the user tries to ...
0
votes
0answers
13 views

404 routing issue - AWS Linux Wordpress site

We are running a WordPress site on a AWS EC2 Linux instance and have created custom 403 and 404 error files (both html files). The files are located in the root of the website. The root .htaccess ...
3
votes
1answer
17 views

Delete repeated subdirectory of url with redirect 301 in Nginx

I have to delete a subdirectory that has been duplicated in several URLs of my site, through a permanent redirect 301. I'm needing help with the Nginx configuration. For example: http://example.com/...
0
votes
1answer
23 views

AWS S3 redirect https to a new domain

So I am changing the domain for my website to another. Because some users might have it bookmarked I need to redirect from old domain to new domain. They all use https. I tried creating a S3 bucket in ...
1
vote
0answers
14 views

Drupal / nginx redirect domain without changing URL with proxy_pass

We have a Drupal 8 website which runs about 18 languages, but only the Chinese one has a separate domain. We want this domain, which for testing purposes is testchinese.com to redirect in the ...
0
votes
0answers
31 views

How to use nginx to redirect based on value of variable in requested location?

I am new to nginx from apache, and I'm trying to do a redirection that follows this simple format. http://sub.domain.tld/location=BLAH should redirect to http://sub.domain.tld/location/directory1/...
0
votes
1answer
27 views

Can I add subdomain that redirect to x.x.x.x/subfolder?

I have the main domain site, but the client wants a subdomain that points to x.x.x.x/subfolder, when x.x.x.x is an external IP. Its posible? Thanks
0
votes
1answer
11 views

Redirect URL in IIS to different domain and remove portions of the URL

We currently have URLs like: https://tfs.mydomain.com/tfs/MyProjectCollection/Project/_workitems that I need redirected to: https://dev.azure.com/MyOrg/Project/_workitems Using the HTTP Redirect ...
1
vote
1answer
28 views

Changed Domain name, now have 2 how to redirect to preferred one using htaccess?

I have a WordPress Site and a PHPBB forum on /forums sub-directory. I added a new domain to the website in Apache. After adding the domain everything would load on both domains. Then I changed the ...
1
vote
2answers
59 views

Apache2: two redirects

I would like to redirect all URLs to https on my host and root folder to sub-folder. My configuration: Redirect permanent / https://myhost.com/ RedirectMatch ^/$ /sub-folder/ The first redirect ...
0
votes
0answers
12 views

nginx: Most efficient non-WWW/WWW/SSL redirect? [duplicate]

Say, I have two domains for one virtual host: primary.tld and secondary.tld. Both sites need to be reached with or without www. in front. Eventually all traffic should be redirected to www.primary.tld....
0
votes
0answers
37 views

Nginx redirect multiple query string urls

I want to redirect some URL to another folder on the same website. Each URL have query string so simple 301 return is not working. Example of redirect I want. example.com/th/?n=abc 301 to example....
1
vote
1answer
85 views

Are .htaccess redirects secure/reliable (website maintenance)?

Our website will be going down for around an hour or so for maintenance. All users need to be redirected to a page indicating that the website is receiving an update and/or under maintenance. Will ...
1
vote
1answer
67 views

Can I safely redirect all incoming HTTP traffic when new files are being uploaded via FTP?

Our website is receiving an update very soon, we've already updated all the PHP, HTML & CSS files so pretty much we just now need to upload the new files to the web server via FTP. Being that the ...
1
vote
1answer
51 views

How to debug big redirect chain in nginx. Unexpected redirect

I have a task to make a large site migration now. And i have a large number of redirects in config. But I cannot understand why one redirect causing second redirect in chain. Even if any other ...
0
votes
0answers
51 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
1answer
59 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
91 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
17 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
49 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
46 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 ...
1
vote
1answer
56 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
46 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
133 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
81 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
47 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
vote
1answer
53 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
36 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
57 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
138 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
156 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; ...
1
vote
1answer
41 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
28 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
53 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): ...
1
vote
1answer
147 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 ...