Questions tagged [redirect]
HTTP or HTML mechanisms used for redirecting browsers to where the actual content is located
2,303
questions
1
vote
1
answer
308
views
Apache redirect www and non-www with subdomain to non-www https
I would like to redirect www and non-www with a subdomain to non-www HTTPS.
I think this should clarify.
<VirtualHost *:80>
DocumentRoot "C:/www/eshop"
ServerName shop.example....
2
votes
0
answers
317
views
httpd on OpenBSD: How to Redirect URLs Ending In '.php'?
I am running an httpd(8) web server on OpenBSD. php-8.1.9 is used to serve php. In /etc/httpd.conf I have the following (example.com is a placeholder for the actual domain):
server "example.com&...
1
vote
1
answer
48
views
Apache2 - Redirect to external Server for several domains
my goal is to setup a webserver, that redirects http requests to another server.
For example, when an URL/Domain changes.
I want to create an CNAME Record for the old domain to the redirectserver (...
0
votes
1
answer
39
views
Nginx, three identical vhost configs, one works, the other two got too many redirects
I got three websites on my server. My mainpage gamenotify.net works well. My other two are getting to many redirects between www and non-www url. My vhost files are identical to my mainpage. I just ...
0
votes
1
answer
463
views
nginx allow sending redirect from app to client
I am trying to redirect a user back to my mobile-app after successful login. (linking back to the app)
For this, I send a 307 response with this link: exp://192.168.178.33:19000?steamId=...
-1
votes
1
answer
114
views
Redirect Large Number of Web Sites from Azure to AWS
What is the best-practice method (considering cost, complexity and performance) to redirect a large number of websites to another server? Each site's DNS contains an A record pointing to an old IP ...
0
votes
0
answers
34
views
Two same pages www.example.com and www.example.com/index.php
Can someone help me how to fix this problem, seobility shows me that i have two same pages www.example.com and www.example.com/index.php
0
votes
2
answers
47
views
route your blog from xyz.com/blog/ to abc.com/blog/
My WordPress website domain name was abc.com (let's say) now due to a new partnership agreement the domain name is changing to WordPress xyz.com (let's say).
I tried this answer https://stackoverflow....
0
votes
3
answers
495
views
Best way to do 301 redirects
Which is the best way to do 301 redirects (for whole domains and also for specific pages/directories)? Using Apache virtual blocks, .htaccess or other solutions?
"Best" for me probably means ...
1
vote
1
answer
707
views
Nginx redirects to ```https://server_name/ ```URL instead of ```https://server_name/projectname/``` , after changing the URL from http to https
I have a couple of URLs like https://server_name/projectname/, now the problem is if I type this URL on the browser, Django (or Nginx) redirects me to https://server_name/, which does not exist. ...
0
votes
0
answers
42
views
How to configure a redirection just for visitors coming from a specific address?
I've been handed a website using cloudflare workers to redirect a wordpress blog hosted in a subdomain to a subdirectory - for the most part it's a copypaste from this cloudflare article plus an if-...
0
votes
1
answer
5k
views
How to setup correct .htaccess for laravel app on subdomain?
I moved my Laravel application from the development localhost to an internet production subdomain.
On localhost everything works. But when I move app to subdomain it seems .htaccess can not handle ...
1
vote
1
answer
933
views
Using an htaccess file for 410 (gone page) prevents use of images
I am shutting down a website. I have deleted the wordpress site and the only page left in the domain is a page announcing the permanent shutdown of the site. The URL of the shutdown page is...
http://...
0
votes
0
answers
413
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 ...
0
votes
2
answers
2k
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 "/...
1
vote
1
answer
523
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 ...
0
votes
1
answer
6k
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 ...
0
votes
0
answers
621
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.
...
0
votes
1
answer
710
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 ...
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 ...
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 ...
0
votes
2
answers
858
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 ...
0
votes
1
answer
1k
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 ...
0
votes
1
answer
658
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 ~ \....
0
votes
1
answer
129
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 | @ |...
0
votes
1
answer
773
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 ...
0
votes
1
answer
528
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
...
0
votes
0
answers
426
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 ^...
2
votes
1
answer
393
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 ...
0
votes
1
answer
1k
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 ...
1
vote
1
answer
2k
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 ...
0
votes
1
answer
240
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 [ $? != ...
0
votes
1
answer
611
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 ...
0
votes
0
answers
368
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 ...
2
votes
1
answer
8k
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://...
1
vote
0
answers
740
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.
...
1
vote
2
answers
2k
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 ...
1
vote
0
answers
2k
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 ...
0
votes
1
answer
18
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....
0
votes
1
answer
3k
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 ...
0
votes
1
answer
116
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 ...
0
votes
0
answers
113
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 ...
0
votes
1
answer
3k
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 ...
0
votes
0
answers
647
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/...
0
votes
1
answer
746
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....
2
votes
1
answer
3k
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 {
...
3
votes
1
answer
3k
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 ...
2
votes
1
answer
390
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 ...
0
votes
1
answer
398
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 ...
0
votes
1
answer
55
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 ...