2022 Developer Survey is open! Take survey.

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

Nginx server under load balancer, when /folder is found redirects to /folder/ but changes the host url

I have nginx server setup in google cloud. Server is being accessed from a host domain through gcloud pointing. Like this: https://server.com/test/ points to instance group with one of instances with ...
user avatar
0 votes
0 answers
16 views

ERR_TOO_MANY_REDIRECTS using Nginx and Application load balancer

I have set up an ALB on AWS with a certificate to redirect traffic over https, in my target group I have a Nginx to do a proxypass with my target instances. Currently I have a CAS 4.0.1 application ...
user avatar
0 votes
0 answers
17 views

Issues with NGINX Rewrite Rules

i tried it now several times but it won't work. I have a Server which running Debian 10 with NGINX and Wordpress installed. Now i need to rewrite some old URLs to the new place. We must rewrite URLs ...
user avatar
0 votes
2 answers
24 views

Apache Proxypass redirects "localhost:port" as url string instead of local service of the port

Environment Server version: Apache/2.4.6 (CentOS) I have two servers which are almost duplicates. aaa.com. and bbb.com. They have almost same Apache rulesets. aaa.com. config <Location "/...
user avatar
1 vote
1 answer
34 views

Redirect to folder only if root from other site referrer

I have a redirect from root to subfolder. If user visits https://example.com it redirects to https://example.com/subfolder. But I want it not to redirect if referrer is my site, so user can reach root ...
user avatar
0 votes
0 answers
13 views

Need to redirect all "mail" subdomains to main domain using mod_alias in apache include editor for server wide domain redirection

I run cPanel on my server and they have it set up so every domain.com gets a subdomain of mail.domain.com -- normally this wouldn't be a problem except the mail subdomains are exact duplicates of the ...
user avatar
  • 1
0 votes
0 answers
13 views

Handling a long URL in a 302 redirect on nginx

I have a URL shortener tool running on nginx (1.20.0), that redirects to various URLs using a simple 302 Redirect (Django redirect shortcut, to be precise, which sends a 302). I noticed that with a ...
user avatar
0 votes
1 answer
24 views

nginx config reverse proxy lose basepath on redirect without slash

i have the following nginx configs to redirect the url path to it's perspective services server { listen 80; server_name abc.com; location = favicon.ico { access_log off; log_not_found off ...
user avatar
0 votes
0 answers
20 views

HTTP redirect partially works

We have two applications behind our router listening on port 80/443. The router has just one valid IP address. The first application is a mail server and the second one is our source control server. ...
user avatar
0 votes
1 answer
22 views

Redirect all pages to non www and one page to www

I want to redirect all my internal pages (eg: example.com/about) to their non-www version but I want my homepage (https://example.com) to redirect to its www version (https://www.example.com). I ...
user avatar
0 votes
0 answers
29 views

masking URL after redirection [duplicate]

I re-post my question in the event that I will be more clear as to what I would like to do. I have a subdomain under a dns name, lets say it is mysub.domain . This subdomain is in a remote provider ...
user avatar
0 votes
0 answers
23 views

masking after redrection using .htaccess [duplicate]

I have read many examples that use the .htaccess file method to mask a url. None of them works for me. It might be something simple that I am missing. Please bare with me. Here is what i want to do: I ...
user avatar
0 votes
2 answers
35 views

301 redirect url based off of a category in the url

Does anyone know how to redirect a url that contains a parent category of a product? Basically I want to redirect a ton of products to a simple landing page that I created, so instead of making ...
user avatar
0 votes
1 answer
25 views

Setup A Default Redirect In Nginx

I need a way to redirect clients when no existing path is defined. When I put a return 301 config in, nginx seems to ignore any location configs. It redirects everything. The hostname in the ...
user avatar
0 votes
1 answer
40 views

Make nginx redirect to HTTPS even with competing location regex

I have the following configuration inside a nginx server {...} block: location /someapp { if ( $https != "on" ) { return 301 https://$server_name$request_uri; } location ~ \....
user avatar
  • 2,826
0 votes
1 answer
36 views

What exactly does a URL redirect for @ do?

What exactly does a URL redirect for @ do? I am familiar with the terminology as seen here. [ sf ] However, I am trying to understand my DNS records and came across this line: URL Redirect Record | @ |...
user avatar
  • 101
0 votes
1 answer
120 views

Nginx reverse-proxy pass front-end application matching url from HTTPS to HTTP

I everyone. I'm very new to Nginx. My situation is like this. I have a Php application which that handles both backend and front-end, and also I have another ReactJs application as a micro-frontend ...
user avatar
0 votes
1 answer
60 views

DNS redirect to a static IP?

I want to implement a URL shortener using a DNS modification. Is this possible? It would do things like convert a domain name to a static IP: https://fubar/keyword -> https://192.168.0.200/keyword ...
user avatar
0 votes
0 answers
80 views

Rewrite rule not woking on Nginx

I want to redirect from /sitemap.xml to /sitemap_index.xml. So, I contacted the plugin developer and received the following rewrite rule. # START Nginx Rewrites for Rank Math Sitemaps rewrite ^...
user avatar
1 vote
1 answer
29 views

How to make nginx use request port for try_files redirect?

I have nginx listening on port 80 in a docker container which maps the port to 8080. When I go to http://example.com:8080/test nginx redirects me to http://example.com/test/ while I would expect it to ...
user avatar
0 votes
0 answers
20 views

.httaccess broken - Too many redirects

So basically I broke the .httaccess and I dont know how to make it work again. All I wanted to remove was a dot which was showing after my domain, it had such symbols like /\ or / instead of just / in ...
user avatar
0 votes
1 answer
114 views

Redirecting a subdomain to a different IP

This question was originally posted on the Network Engineering StackExchange page, but has been moved here. TL;DR I have a domain name attached to an AWS Elastic IP, I'd like to create a record for a ...
user avatar
0 votes
0 answers
23 views

URL Whitelisting within a Proxy for tableau-server on Linux(RHEL)

My company is trying to setup a tableau-server on a linux virtual machine (RHEL). Now, the VMs we use, cannot access the internet, so, we have to specifically mention the endpoints to be whitelisted ...
user avatar
  • 101
0 votes
0 answers
32 views

Redirecting pages from under subpage to under root path

Some pages on my site appear under example.com/subpage/. but I want to show them under example.com/. How should I change the following redirects? RewriteRule ^subpage/([0-9a-zA-Z-_]+) another-page.php?...
user avatar
0 votes
1 answer
70 views

rewrite rules from apache to nginx

I have a problem with this... I'm using free hosting for giving a demo to my future buyers of my own cms. The hosting is hubuhost.com, they are supporting the last version of php 8.1. The problem is ...
user avatar
  • 3
0 votes
0 answers
30 views

Broken non english url on redirect in Nginx

I am running WordPress on the NginX server. And I have a problem with permalink getting the query string ?nonamp=1. So I want to redirect like this: example.com/abc/?nonamp=1/ redirect to example.com/...
user avatar
0 votes
1 answer
39 views

Redirect specific traffic through a VPN interface

I, I would like to redirect specific ports through a specific interface. Until now what I accomplished it was cat /etc/iproute2/rt_tables | grep "200 force.route" > /dev/null if [ $? != ...
user avatar
0 votes
1 answer
97 views

nginx: Redirection from old to new git base URL

I would like to redirect the old base url of git repositories. I use the following code: location ~ ^/scm/git/(.*) { return 301 /scm/repo/git/$1; } In the browser, the redirection works fine, but ...
user avatar
0 votes
0 answers
68 views

www page always returns 302

We are changing our company website, old wordpress website is on old server centos/apache with ip 10.10.10.20 and the new one has different ip 10.10.10.200. The deal was to just edit dns entries, as ...
user avatar
0 votes
1 answer
50 views

Nginx redirect https to https

I'm trying to redirect a https domain like https://example.com to https://example.com/something with nginx. it works properly when I use http://example.com in my browser but not working with https://...
user avatar
0 votes
0 answers
116 views

Nginx Redirect from HTTP to HTTPS works in Firefox but not in Chrome

with my Nginx configuration (see below) redirecting from http to https works fine when accessing the page (http://example.com/) with Firefox. But for some strange reason it does not work with Chrome. ...
user avatar
  • 1
0 votes
0 answers
63 views

Redirect certain url path from wordpress to another root using nginx

It's a pretty simple question, yet I can't find a working answer. My project is Wordpress (http://example.com/). Under a certain path (http://example.com/see-our-page) it should be redirected to ...
user avatar
  • 1
0 votes
1 answer
189 views

Forcing HTTP/HTTPS Redirect on AWS LightSail Wordpress Multisite - Not being implemented

I have searched many site and also Bitnami support pages and I was unable to find an answer to this issue I see. I cannot post on Bitnami support cummunity as a new topic as I have just joined :/ I ...
user avatar
0 votes
0 answers
228 views

redirect path of nginx from a proxy pass to another server

I need to explain a problem. I need the output of the PATH content of an nginx reverse proxy to be sent to another domain that resides on another nginx server. Clear explanation: I have two linux ...
user avatar
0 votes
1 answer
14 views

redirect a subdir simplycreate.online/zephyr-guide/ instead of zephyr-guide.simplycreate.online

i setup github pages successfully... on my hoster cpanel i setup subdomain cpanel entry then in github pages settings.... i add Custom domain: zephyr-guide.simplycreate.online however simplycreate....
user avatar
0 votes
0 answers
56 views

How to not redirect if image is embeded using nginx?

I currently have setup to redirect if a user direct access the image by browser. However I do not want to redirect if a image is embeded on the page using <img src=""/> this is my ...
user avatar
0 votes
1 answer
79 views

Nginx redirects to http://localhost

Brief image of the situation I can't use domain address for server_name because I can't control DNS server. I must use public IP to connect to my web server. So I set server_name to _;, but when I ...
user avatar
0 votes
1 answer
27 views

example.com to https://www.example.com | Apache

So I want to redirect example.com to https://www.example.com. I already have ssl with certbot but I want to change my redirect config in /etc/apache2/sites-available/example.conf. Certbot already ...
user avatar
0 votes
0 answers
28 views

How to not redirect if is from social media site with Nginx?

How do I not force a redirect if it's from a social media site like reddit,facebook & twitter? Currently my setting is set to redirect any direct access to image files but I don't want to redirect ...
user avatar
0 votes
1 answer
197 views

Redirect causes 404 error on nginx

How do I redirect if a user tries to direct access image files in browser only? I want to still keep the ability to allow social media sites to embed our images by hotlinking. I just want only if a ...
user avatar
0 votes
0 answers
39 views

Bad nginx URI redirection

I am trying to authenticate in a keycloak server however the redirect_uri doesnt come with the context (/admin/). Nginx is producing a wrong URI redirect_uri: hxxps://***.pt/auth/realms/example/...
user avatar
  • 121
0 votes
1 answer
75 views

How to redirect user if direct access image files by browser? [nginx]

How do I redirect if a user tries to direct access image files in browser only? I want to keep the ability to embed images with <img src="...">. How to redirect from https://img....
user avatar
2 votes
1 answer
277 views

403 in nginx when accessing a directory

I made a very simple server to test how a URL with folder behaves in nginx. Nginx is running in docker (nginx:latest image). Nginx runs user nginx (default set in /etc/nginx/nginx.conf). server { ...
user avatar
2 votes
1 answer
620 views

Remove hashmark (#) from nginx url and redirect

I want to take a url, add a prefix as well as remove the hashmark from the url. For example, redirect from http://localhost:8088/app1/#/hello to http://localhost:8088/apps/app1/hello. I've tried this ...
user avatar
0 votes
0 answers
27 views

Redirect web traffic to another server using IP and preserving host headers

I am currently in the process of migrating a few customer's websites currently hosted in Datacenter "A" on a single Apache server to another server in Datacenter "B". The challenge ...
user avatar
1 vote
0 answers
42 views

Lighttpd - Redirect HTTPS 443 to HTTPS 123

I have HTTPS working for a local instance of Lighttpd. But I'm wanting to redirect: http://192.168.1.254 -> https://192.168.1.254:123 https://192.168.1.254 -> https://192.168.1.254:123 My ...
user avatar
0 votes
1 answer
72 views

Certbot cannot check challenge because of Apache "Redirect / domain.com"

So there is this server that is all messed up but that is besides the point. I ran certbot and it failed. Checked the vhost for port 80. It has the blanket redirect. It dose not seem like it would ...
user avatar
0 votes
1 answer
27 views

Postfix test: I can't forwarding outgoing emails

I am configuring a Postfix server in a test environment. It can only forward local emails. Outbound email must be redirected to /dev/null or to a local account. I found a solution on your forum but it ...
user avatar
  • 1
1 vote
1 answer
98 views

How do I redirect a URL with special (%C2%A0) characters in Nginx

I found out that I have link to one of URLs with some garbage behind that would generate some traffic, however whoever it placed it did it wrong: /domain/sub-directory/%C2%A0 Therefore, I would like ...
user avatar
0 votes
1 answer
59 views

Apache, redirect for a moved directory

On our webserver a directory has been "copied" from one location to another. Now the original location is gone however I am receiving requests to provide a redirect to the new location. I ...
user avatar

1
2 3 4 5
45