Questions tagged [redirect]
HTTP or HTML mechanisms used for redirecting browsers to where the actual content is located
2,308
questions
0
votes
1
answer
17
views
Why data exchange using redirection via query params/auto-form-post CANNOT be trusted even on https?
Here is somewhat a basic question but the reason is not spelled out clearly anywhere.
Say we have 2 web applications running on https://one.abc.com and htts://two.xyz.com.
I visit https://one.abc.com ...
-2
votes
1
answer
33
views
How to configure IIS site with a fixed URL and port to serve both HTTP and HTTPS on the same port?
I have a QR of our HTTP site http://asdfsite.com:800 engraved on furniture. The url cannot be changed.
It was working until browsers began to convert HTTP to HTTPS. This prevented visitors from ...
0
votes
0
answers
26
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]
...
0
votes
0
answers
33
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 ...
0
votes
0
answers
19
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-...
0
votes
0
answers
49
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 (...
0
votes
0
answers
55
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 ...
0
votes
2
answers
264
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 ...
0
votes
0
answers
53
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 ...
0
votes
0
answers
38
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 ...
0
votes
0
answers
17
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 > ...
0
votes
1
answer
47
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-...
1
vote
1
answer
66
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 ...
0
votes
1
answer
108
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 ...
0
votes
1
answer
34
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 ...
0
votes
1
answer
39
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 ...
0
votes
1
answer
76
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 ...
-2
votes
2
answers
40
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, ...
0
votes
1
answer
35
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 ...
0
votes
1
answer
74
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/...
0
votes
0
answers
133
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 ...
1
vote
0
answers
75
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 ...
0
votes
0
answers
45
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 ...
1
vote
1
answer
38
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 ~ ^/([^/]+)/(...
1
vote
0
answers
373
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 ...
0
votes
1
answer
54
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 ...
-1
votes
1
answer
384
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 ...
1
vote
1
answer
128
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&...
1
vote
1
answer
53
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-...
0
votes
1
answer
202
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 ...
0
votes
0
answers
68
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 {...
0
votes
0
answers
138
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 {...
0
votes
0
answers
90
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 ...
0
votes
0
answers
148
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 ...
0
votes
1
answer
54
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 ...
0
votes
2
answers
73
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; ...
1
vote
0
answers
93
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/...
0
votes
0
answers
24
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 ...
0
votes
1
answer
110
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 ...
1
vote
1
answer
360
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 ...
0
votes
1
answer
54
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["...
0
votes
0
answers
32
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) ...
0
votes
0
answers
92
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/...
1
vote
2
answers
514
views
Apache rewrite rule for a folder to a different domain
I need to redirect all requests concerning a folder to another (old) web server called www2 keeping the entire original path, for example
https://www.example.org/thisfolder/maps/map.jsp?id=2345
must ...
0
votes
1
answer
432
views
Exchange Online redirect rule doesn't reset "To" address
My configuration goal is to forward / redirect a message going to a mailbox to an external site (its an email capture setup).
I was using forwarding, which is straight forward but includes the ...
0
votes
0
answers
380
views
Tomcat redirects from https to http even though it shouldn't
I had to change server cert for Tomcat and that's all what I've done. Now all of a sudden it redirects browsers from 443 to 80:
% wget https://example.com/example
--2023-06-04 19:56:35-- https://...
0
votes
0
answers
234
views
Alias custom domain to GitHub repository for git clone
What I'm trying to do is setup a custom domain name so that it can be cloned as a git repository using git clone.
For example,
$ git clone https://my-domain-name.tld/ # would be cloned into my-domain-...
-1
votes
1
answer
274
views
Cloudflare DNS keeps redirecting to a wrong site on the same server
I have a strange DNS setting glitch here.
We are rebuilding and migrating two old sites to a new VPS server. They coexist now as below. We use Cloudflare DNS (NO reverse proxy).
Site A: aaa.example....
0
votes
0
answers
100
views
How do I redirect a subdomain to another internal webserver without affecting the RDP Gateway
we have a standard windows server 2022 running IIS 10 and remote desktop gateway.
we use rdp.domain.com for the gateway address for external RDP Users.
we would like to run another internal windows ...
0
votes
1
answer
67
views
Redirect a subdirectory to external domain
I want to redirect all the entries for a certain subdirectory to another (external) domain with the "rest" of the address. I have tried something but it does not work...
server {
listen [...