Skip to main content

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
1 answer
25 views

Best approach for HSTS with a redirect to a new domain

Situation: A site we manage got migrated to a new hosted solution and will also have a new domain name. The clients want to keep the old domain name and have it redirect to the new domain name at the ...
zip_000's user avatar
1 vote
1 answer
78 views

NGINX redirect dynamic page to another website

I am trying to redirect ONE dynamic page to another website using an NGINX directive: "/course/view.php?id=24" TO "www.example.com/dir/dir" I have tried both of the following. ...
user3633393's user avatar
0 votes
1 answer
42 views

Redirect requests to a Web Application to a different Web Application on the same IIS server

I have an IIS Server. When a new application is launched, I update the application link on the organization's portal-site. However, many users have saved bookmarks for the old application. We still ...
Amirhossein's user avatar
0 votes
0 answers
43 views

I am attempting to redirect a subdomain to an external site using htaccess. HTTPs is not working [duplicate]

My virtual Hosts are configured as follows: <IfModule mod_ssl.c> <VirtualHost *:443> ServerAdmin [email protected] DirectoryIndex index.php DocumentRoot /var/www/html/ ServerName ub-web-...
Robert Ellis's user avatar
0 votes
1 answer
99 views

Nginx: only shows website when port is specified

I have the following configuration in /etc/nginx/conf.d/new_sites.conf: server { listen 80 default_server; server_name website.xyz www.website.xyz; location / { proxy_set_header X-...
parsecer's user avatar
  • 165
2 votes
1 answer
190 views

Iptables: Redirect IP matched request to dedicated server port

I have an iptables configuration problem that I cannot seem to solve. I have a list of known, bad ip address that I block access to my server via ipset and iptables. The original approach has been to ...
pete19's user avatar
  • 23
0 votes
0 answers
37 views

Apache httpd ErrorDocument directive not working

I'm on a RHEL 8 machine and use Apache httpd to display severel vHosts. I want to redirect all requests to a maintenance page when error code 503 is returned. My vHost configuration looks like this: &...
user23705068's user avatar
0 votes
1 answer
62 views

Redirect/Rewrite requests from IIS7 to Nginx (2 different servers)

Context: We've a Microsoft Server 2019 with IIS7 hosted on an internal network (publicly accessible) with a dedicated IP 1.2.3.4 where the root subdomain dept.company.com is linked (assigned by my ...
Amruth Kiran's user avatar
-1 votes
1 answer
86 views

Why is data exchanged between my two web apps using redirection with query parameters or auto-form-post cannot be trusted, even when using HTTPS?

Why is data exchanged between my two web applications using redirection with query parameters or auto-form-post cannot be trusted by each web application, even when using HTTPS? Note: I understand ...
mee's user avatar
  • 3
0 votes
0 answers
41 views

Confirm these 301 redirects are correctly setup in my htaccess file

i have in my root directory my english page and in subdirectory folder arabic page but the rule but as per https://htaccess.madewithlove.com/ : RewriteCond %{HTTP_HOST} ^arianamedicaretour\.com$ [NC] ...
ariana medicare's user avatar
0 votes
0 answers
52 views

Website redirects are not working when using Pihole on docker instead of VM

I’m currently in the middle of moving some infrastructure to containers from a ton of VM’s running simple things. I’m trying to move our pihole DNS server to a container. All was working well, until I ...
Tayotoka's user avatar
0 votes
0 answers
41 views

Tomcat Isapi Redirect crashes different app pools

I installed the ISAPI redirect dll on an IIS to access my tomcat application via the IIS and use its SSO. I have installed it, using the official documentation: https://tomcat.apache.org/connectors-...
Andreas R's user avatar
0 votes
0 answers
55 views

Nginx - TooManyRedirects when removing trailing slashes and accessing folders

For our static content we added a redirect rule, to remove slashes at the end of those urls. That was done for seo reasons and worked fine. Now, we recognized, that when you try to access folders (...
Carl Mahnke's user avatar
0 votes
0 answers
77 views

Redirect mails to a different recipient

We have a server which is sending sheduled mails to an address which does not exists. This was a false configuration by a former coworker and we are unable to detect where it happens. So our idea was ...
MaKaNu's user avatar
  • 133
0 votes
3 answers
731 views

Is it better to redirect root to www or www to root?

This may be a 'fashion' question, but is it better to redirect: https://www.example.com -> https://example.com or https://example.com -> https://www.example.com? I always assumed it was better ...
J. Gwinner's user avatar
0 votes
0 answers
60 views

subdomain redirect best practices

I'm setting up a site served by Nginx on FreeBSD. The only content is at sub.example.net, and I'd like to 301 any requests to example.net, www.example.net, and www.sub.example.net. My current solution ...
MonocleRB's user avatar
  • 101
0 votes
0 answers
41 views

HTTP to HTTP Apache2 Rewrite not being used

I want all traffic sent on HTTP redirected to port 443. I curently have a Rewrite rule set up for port 80 in the sites-available apache2 directory but when I go to that address on that port it still ...
Guy Lowe's user avatar
  • 101
0 votes
1 answer
42 views

in iptables redirect unknown mac clients using --to-destination 192.168.0.30

I have been using iptables to block all unknown mac addresses from the internet gateway by EXT_DEV=wlan0 INT_DEV=eth0 INT_NET=192.168.0.0/20 modprobe ip_conntrack modprobe ip_conntrack_ftp echo 1 > ...
Cor Cool's user avatar
0 votes
1 answer
50 views

www to non-www redirection not working on Nginx

I have the following config under my /etc/nginx/sites-available/example.com. What I need is HTTP traffic to be redirected to HTTPS, and WWW to be redirected to non-www. But for some reason WWW to non-...
geochanto's user avatar
  • 159
1 vote
1 answer
113 views

nginx userdir without tilde

Usually userdir's in webservers prefix a ~ to the username, e.g. https://example.com/~me/ to access /home/me/public_html/. Now, for $reasons, I need to setup an nginx server that serves directories in ...
umläute's user avatar
  • 519
0 votes
1 answer
127 views

Application actions based on URL

I am sorry if this question was already asked, but I do not know how to frame it differently - none of my searches found something that answers this. I am currently using Windows 11 and XAMPP, with ...
Kobus Myburgh's user avatar
0 votes
1 answer
71 views

HaProxy custom ports

I need to load balancing one of our customers application portal. The flow works as follow: The enduser reach the portal through the URL example.net:3000/login page; The enduser will choose one of ...
FriendlyPotat95's user avatar
0 votes
1 answer
52 views

apache redirects to local IP on virtual machine

I'm having a problem with my apache setup. I'm using a Proxmox server with multiple virtual machines and only one public IP. Apache runs on the Proxmox host and forwards the requests to the virtual ...
xtrose Media Studio's user avatar
0 votes
1 answer
104 views

Weird 301-redirect to http from https only happening with CF as proxy on /wp-admin on www subdomain

I have a wordpress blog on an EC2 instance on AWS using the AMI image aws-marketplace/bitnami-wordpress-6.3.2-6-r09-linux-debian-11-x86_64-hvm-ebs-nami-7d426cb7-9522-4dd7-a56b-55dd8cc1c8d0 In ...
user1015149's user avatar
-2 votes
2 answers
43 views

301 redirect the old domain with a certain link to a new domain with the same link

I have a problem, I want to redirect htaccess The content of domainold.com is still used, only this URL has changed from the Old website, namely http://domainold.com/product/register to my new site, ...
Project Downgrade's user avatar
0 votes
1 answer
48 views

nginx redirect subdirectory

rewrite ^/faq/(.*)$ /faq/$1 redirect; I would like to redirect domain.tld/faq/* to domain.tld/faq/ Unfortunately, this leads to an endless loop. Background: There was the FAQ url and very many other ...
Andreas Armbruster's user avatar
0 votes
1 answer
95 views

nginx redirects with changed response code

I am trying to redirect any location that gives 404 to the front page and change the response code to 302. According to nginx documentation this should be possible? https://nginx.org/en/docs/http/...
7fc9ecfc6810c58545e1bc3b556003's user avatar
0 votes
0 answers
165 views

Kubernates - ExternalName Service rewrite method from POST to GET after HTTPS redirect

Imagine to have this scenario: An API Gateway A Backend Service deployted on a Kuberantes cluster. Also we have: An external authenticated service (imagine an external web application out from our ...
Bugpirasi's user avatar
  • 101
1 vote
0 answers
134 views

Avoiding redirect server's url to www for specific url path

I want to enable auto-verification of deep links in Android for which I need to host the file assetlinks.json on my server https://mycompany.com. This will allow auto-verification of my deep links ...
Pankaj Badgujar's user avatar
0 votes
0 answers
49 views

Test Page Apache httpd on docs.domain.com

I have a wordpress website server running on linux. I have a issues when I enter docs.domain.com it opens a Test Page Test Page pic . So my target is when users enter https://docs.example.com to ...
AZAZEL's user avatar
  • 9
1 vote
1 answer
43 views

Redirect removing sufixes after 3 URL segmentes in Nginx

This is the URL that I need to remove the last segment (?order=asc) https://www.example.com/segment_1/segment_2/page/the_number_goes_here/?order?asc This is the code I'm trying: location ~ ^/([^/]+)/(...
btgen's user avatar
  • 11
1 vote
0 answers
599 views

Apache Server Forward Proxy : How to redirect to a custom page?

On Apache server (Xampp) I have make a forward proxy for firewall filtering that works well, but I don't understand how to use RewriteRule to redirect a forbidden url to a custom error page. I wish to ...
Eremin's user avatar
  • 11
0 votes
1 answer
55 views

Special redirect NGINX Wordpress removing last segment

I need some guidance on how to redirect this the proper way... I have a site on nginx and a bunch of malformed URL's (crawled by Search Console) that I need to redirect with 301. My CMS is Wordpress ...
btgen's user avatar
  • 11
-1 votes
1 answer
870 views

nginx refuses to redirect all 404 pages to my index.html

I want Nginx to redirect all pages that are 404 to my index.html. This nginx is running as a container. Yes I have confirmed nginx is actually being reached as the docker-compose log output shows the ...
Dave's user avatar
  • 366
1 vote
1 answer
160 views

How to remove amp word from center of url

I removed Amp Module from our site and I need to remove amp word from center of all of urls. Using Nginx Web server for example : mysite.com/shirt/nike?amp=1&product_list_dir=asc&...
peyman peymani's user avatar
1 vote
1 answer
61 views

Nginx subdomain to subdomain redirect not working

The config below redirects to .another-domain.com with empty subdomain name. What am I doing wrong? server { server_name ~^(\w+)\.domain\.com$; location / { rewrite ^ $scheme://$1.another-...
Vladimir's user avatar
  • 135
0 votes
1 answer
282 views

How redirect ANY site not found in Hestia to another server - Nginx proxy manager

I want: if ANY site not found in (Hestia 192.168.0.37 server) then redirected (Nginx proxy manager 192.168.0.36) Given: Hestia server 192.168.0.37 Nginx proxy manager 192.168.0.36 Site for test ...
dr.ipkins's user avatar
0 votes
0 answers
87 views

Mask Url from path to subdomain using NGINX

I want to achieve url rewrite as such: https://documentation.domain.com/login to https://app.domain.com/login https://api.domain.com/login to https://app.domain.com/login , any sudomain with url {...
Jason The Dynamite's user avatar
0 votes
0 answers
159 views

NGINX Rewrite path to subdomain with cloudflare results in Too many redirects

I want to achieve url rewrite as such: https://documentation.domain.com/login to https://app.domain.com/login https://api.domain.com/login to https://app.domain.com/login , any sudomain with url {...
Jason The Dynamite's user avatar
0 votes
0 answers
109 views

Nginx missing trailing slash redirects to the wrong url behind proxy

We use an nginx webserver behind an nginx proxy. When i try to browse a subpath, the nginx backend webserver (something.example.local) appends a trailing slash behind the url (301 redirect) -as ...
5poharviz's user avatar
0 votes
0 answers
181 views

Using Rank Math REgex for subfolder redirects to home

So short summary: im a SEO specialist working on a website that has over 1000 404 pages due to a translator app. The subfolders /de/ /fr/ /es/ /en/ and URL's within the subfolder need to be redirected ...
user1043312's user avatar
0 votes
1 answer
83 views

How to block all requests starting with "?mode" on Apache?

Recently my website was hacked and now I have around 20000 indexed links in Google that were redirected to other sites via my website. Now I have stopped all redirects but I have too many request on ...
Ahmad Eidizadeh's user avatar
0 votes
2 answers
98 views

Path not excluded by mod_rewrite config

I am trying to roll my own vhost config to handle certbot/letsencrypt. I want to redirect anything other than requests to /.well-known to HTTPS. But the exception for .well-known is not working; ...
symcbean's user avatar
  • 22.7k
1 vote
0 answers
103 views

htaccess: I can't redirect to nested subfolders correctly on the WordPress app

I have a multilingual WordPress site that has two languages: en and tr, It's site A. I wanna put my other WordPress site inside /tr/shop/ folder, It's site B. Just need only these rules: /en/anything/...
user avatar
0 votes
0 answers
25 views

Pass requests for specified hosts throw VM

I have VPN that restrict all internet except inner resources. I don't like it and i want to install VM, connect it to VPN and redirect all requests for specified hosts to VM and get back answer. Is ...
Алексей Емельянов's user avatar
0 votes
1 answer
123 views

Redirect Error website on VPS Ubuntu "www version" redirecting to "apache default page"

Hi I am a web designer and have recently starting maintaining a VPS server I am using a Lamp VPS server running ubuntu 18 with multiple PHP websites have edited virtual host and htaccess multiple ...
SACHIN HD's user avatar
1 vote
1 answer
481 views

Apache RedirectMatch not matching double slash

I want to redirect URLs with multiple consecutive slashes (e.g. //) in the path to have only one consecutive slash, e.g. https://example.com/a//b/c/ → https://example.com/a/b/c/. My .htaccess file ...
fionn's user avatar
  • 13
0 votes
1 answer
60 views

Is possible return a static page in https virtual host using lighttpd?

It seems like redirect is not done. If I put URL https://test2/static_page in browser it works but if I put https://test1 don't redirect SERVER["socket"] == ":443" { $HTTP["...
Aprendiz's user avatar
0 votes
0 answers
34 views

Learning reason of incorrect redirect in Nginx

There's a web app url of which may vary - it's either .com or my..com depending on if a user is logged or not. However, there's an element on the main page (that can be accessed via .com or my..com) ...
Gregory Miermont's user avatar
0 votes
0 answers
102 views

Nginx Redirecting Single Question Mark Request to Originaly URI

I'm trying to redirect URI's ending in a single question mark to the same URI with the single question mark removed. Running nginx/1.21.6 Here's an example. Original Request: https://domian.com/...
jordantrizz's user avatar

1
2 3 4 5
47