All Questions
95
questions
1
vote
2
answers
269
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
0
answers
115
views
Nginx Server Block Not Redirecting Properly
I've just recently swapped over to nginx from apache2, and it seems to be handling load times much better. However, I've now lost access to my forum subdomain. Whenever I goto my forum's subdomain, it ...
0
votes
1
answer
132
views
Apache vHosts - Two domains, multiple subdomains and defaults possible?
after searching and try-and-erroring for a while I came to the conclusion that my problem is a bit too special for google :-)
I have 2 domains and multiple subs
example.org
cloud.example.org
wiki....
1
vote
0
answers
262
views
Redirect a subdomain to a different subdomain using host records
I have two domains example.com and example2.com; the second domain is simply to catch a common misspelling of my name and I want to redirect everything on it to example.com.
I have a number of ...
0
votes
2
answers
46
views
How do I redirect "old.foo.com/foo" to "new.foo.com/foo" with a NGINX K8S ingress, without breaking cert-manager?
In my K8S ingress config, I'm trying to redirect from (for example) old.mywebsite.com to new.mywebsite.com.
I can do this with the nginx.ingress.kubernetes.io/permanent-redirect annotation, but ...
0
votes
1
answer
2k
views
How to redirect forward from one subdomain to another subdomain with DNS?
I have several subdomains under an existing main domain, e.g.:
eg.domain1.com
ie.domain1.com
The company is rebranding, and has setup a new main domain, under which all of these subdomains now need ...
0
votes
0
answers
55
views
Nginx proxy using domain as part of url path
I'd like to proxy foo.domain.com to the internal server http://localhost:8080/foo, the subdomain part is dynamic so bar.domain.com is also proxy to http://localhost:8080/bar.
I try this code up and ...
0
votes
1
answer
89
views
Point Webflow site to example.com/webflow-site
I'm using google domains to host my frontend web application at example.com. I also have marketing pages that are built on webflow.com that I'd like to seamlessly integrate with the example.com.
I'd ...
0
votes
1
answer
797
views
Apache redirect URL to another virtualhost
I have two sites which runs independently on my VPS, let's call them site1 and site2.
They are respectively located at /var/www/html/site1 and /var/www/html/site2
I don't have a domain name yet but I ...
1
vote
1
answer
3k
views
Apache add new site as subdomain on server
I have two sites which runs independently on my VPS, let's call them site1 and site2.
They are respectively located at /var/www/html/site1 and /var/www/html/site2
I don't have a domain name yet but I ...
0
votes
2
answers
2k
views
Nuxt.js program not running on the Main Domain with Apache in Ubuntu
I have a Nuxt.js program that I run on Apache in Ubuntu OS. When I port it to a subdomain like www.example.com, it works fine; But when I port it to the main domain such as example.com, my program ...
0
votes
1
answer
144
views
How do I point other websites to subdomains on my site without redirecting users?
Apologies in advance as I'm trying to do something and I don't know what it's called or the best way to describe it, but here's my best attempt:
I have a domain, let's say aaa.com, and that domain has ...
0
votes
1
answer
1k
views
apache2 ip redirect conflicting with subdomain redirect
so visiting my website example.com works as intended.
I successfully configured a redirect so that abc.example.com will redirect to example.com/abc.
The config file looks like this abc.example.com....
1
vote
1
answer
706
views
Apache redirect all non valid wildcard subdomains to root domain
Is it possible to redirect all 404 subdomain result to the root domain in apache2? Im using a wildcard subdomain entry in my DNS provider, and apache is set to fetch the site in the folder with the ...
0
votes
0
answers
260
views
Redirecting subdomain to another server shows server's IP
Let's say I have a domain x.com which is hosted on server1.
I made a subdomain sub.x.com and pointed it towards server2.
All of this worked successfully, except now I see server2's IP instead of sub.x....
0
votes
1
answer
355
views
Redirect abc.example.com to example.com/abc
I have a domain example.com with the following DNS records:
Hostname Type Value
example.com A 93.184.216.34
help.example.com A 93.184.216.34
www.example.com A ...
0
votes
1
answer
210
views
How to restrict folder access to only subdomain redirect?
I want to redirect a subdomain to a folder such that the only way to access that folder is by the subdomain.
app.example.com => example.com/app
example.com/app => 404 Not Found
Is this ...
0
votes
1
answer
51
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
1
answer
678
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 ...
0
votes
3
answers
2k
views
Apache Virtual Host redirect from https subdomain to subdirectory
How do I redirect requests coming to https://blog.example.com to https://example.com/blog?
Reading the apache docs on when not to use the rewrite mod, I tried a simple redirect e.g.
Redirect https://...
0
votes
1
answer
2k
views
Redirect root domain only, but keep some subdomains pointer to original root domain
I have the following config:
Type Name Value
A @ 192.0.2.123
A www 192.0.2.111
CNAME test @
CNAME mail @
Is it possible to temporary redirect the root domain ...
1
vote
1
answer
3k
views
How do I redirect subdomains to the root domain in Nginx on CentOS?
I'm using Centos with Nginx and Puma. I would like to redirect all subdomains to my main root domain, so I was following the instructions here -- https://stackoverflow.com/questions/26801479/nginx-...
2
votes
2
answers
2k
views
Apache redirect from ssl subdomain not working
I am trying to redirect all traffic to https and all subdomains to main domain and can't get it right. I am using Ubuntu 14.04 with latest apache2.
I set up virtualhost for port 80 to redirect all ...
0
votes
0
answers
108
views
http://sub.site.com is incorrectly redirecting to http://www.sub.site.com instead of https://sub.site.com
Using Apache 2.4.18 on Ubuntu 16.04.2
I have blog.ryangiglio.com set up as a virtualhost. I used the letsencrypt certbot to generate an SSL cert for the server, and set it to force redirects from ...
1
vote
1
answer
2k
views
Subdomain redirect to my external IP - SSL Certificate not valid
I am running an local Ubuntu-Server as my cloud. This machine is reachable from the outside via my routers portforwarding. This works fine (via IP). Now i created a subdomain in my existing 1und1 ...
1
vote
1
answer
71
views
Subdomain SSL and redirecting
So, I have a portal type of website that I'm considering selling.
Let's for the sake of convenience, call my website www.portal.com. If I sell one of these portals, I would like them to be under the ...
1
vote
2
answers
368
views
Nginx: Redirect https://www.domain.tld/target to https://nocache.domain.tld/destination
I have a Cloudflare/Nginx(v1.8.0)/Apache server config with lots of caching.
Goal is to cache the main domain but allow access to a site via a subdomain on which all caching is bypassed.
So, I'm ...
1
vote
1
answer
77
views
Redirects for main domain are being triggered for sub domains
I have a domain configured on my server to redirect all requests to the HTTPS version of my site which is all working fine. A few days back, I added a sub-domain which is now being redirected to the ...
0
votes
4
answers
2k
views
Redirect http subdomain to https
I'm trying to redirect all requests from http://blog.example.org to https://blog.example.org.
Unfortunately I receive this error:
400 Bad Request The plain HTTP request was sent to HTTPS port
My ...
1
vote
0
answers
443
views
redirect subdomain of old domain to directory in new domain
I would like to redirect a subdomain of an old domain to a directory on a new domain.
e.g. forum.old-domain.com should redirect to new-domain.com/forum
The redirection from old-domain.com to www.new-...
7
votes
3
answers
10k
views
In Nginx, map specific subdomains to ports, redirect all others
I'm trying to accomplish three things:
Map traffic, by subdomain, to one of several applications on different ports.
If subdomain isn't recognized, redirect to www.
Require HTTPS on all subdomains.
...
1
vote
1
answer
185
views
Redirection to subdomain URL while preserving original URL and serving files from subdomain URL
I want to go to www.example.com and be redirected to subdomain.example.com/homepage without the url changing from www.example.com.
The catch being than my css and js is hosted at subdomain.example....
0
votes
2
answers
408
views
Redirect subdomain.domain.org to domain.com which is expired
I have 2 domains and both are on my server and both are registered by me. But the problem is that one of domains expired yesterday and i need to access it's data through the url urgently but i can't ...
4
votes
1
answer
2k
views
Redirect all subdomains to main domain with HTTPS without a wildcard cert (nginx)
I have a domain name with a main site and a few vhosts. I want all sites (main and vhosts) to only be accessible through HTTPS (using HSTS), and I want non-existing subdomains to be redirected to the ...
1
vote
1
answer
588
views
Lighttpd: Redirect Domain but not Subdomain
In the past I had the following config on Lighted that would allow me to redirect some secondary domains I own to my primary domain.
$HTTP["host"] =~ "superdomain\.net|superdomain\.eu" {
url....
2
votes
2
answers
14k
views
Redirect all subdomains to main domain inside vhost
I simply want to redirect all subdomains that are not not already mentioned in a vhost's ServerName to redirect to the empty sub domain. I tried to add this to my httpd.conf after all other virtual ...
0
votes
0
answers
139
views
Make dynamic redirection with dynamic sub domain
it is possible to make dynamic redirection with dynamic sub domain?
that is to say that I have a domain with redirection *.domain.com, to my server-1 but I'd like:
a1.domain.com -> server-1
b1....
0
votes
1
answer
173
views
htaccess - redirect non https & set different default page for each sub-domain [duplicate]
I have a wild card ssl for my domain. I have many subdomains each with its own default page.
www.domain.com/main.html [/home/domain/main.html]
try.domain.com/free.php &...
1
vote
2
answers
4k
views
Apache proxypass redirect subdomain to port and path
Ok, I wasn't sure how to word the title but I'll try to explain my situation.
I have a home server running debian that, among other things, is running "plex media server".
I access my server ...
1
vote
1
answer
2k
views
Redirect Subdomain That is Not on SSL
I have a SSL certificate that is installed on the server that only covers the domain, not subdomains
All traffic is redirected using apache config file
When I set up the subdomain to redirect a ...
1
vote
1
answer
770
views
Remove www from subdomains in Apache
I have a domain domain.org
I am adding SSL, unforunately a lot of subdomain where created as "www.subdomain" and it is way more expensive to create certificate to multiple 3 level subdomains.
Is it ...
0
votes
1
answer
1k
views
Nginx - redirecting non-www to www, but not subdomains
I have many domains linked to the same php directory, and I need all of them to redirect from non-www,non-https to www,https.
# Add www, if missing
server {
server_name "~^(?!www\....
-1
votes
2
answers
4k
views
Redirecting/rewriting wildcard domains to ssl in nginx
I have tried all the solutions found on this site and others but am still having a problem with redirecting a wildcard subdomain with http to https. I still end up with
https://%2A.example.com/...
0
votes
1
answer
5k
views
redirect all subdomains from http to https [duplicate]
I redirect all http requests for my subdomain to https by using following code.
<VirtualHost *:80>
ServerName subdomain.example.com
Redirect 302 / https://subdomain.example.com
</...
1
vote
1
answer
70
views
Show website on one server in subfolder on another server
I have two websites. One website is a microsite developed by someone else, hosted on a subdomain and I would like to serve this website via a URL on the second website, for example:
test.maindomain....
0
votes
1
answer
97
views
Nginx Specific Redirect Rules
I'm trying to read all the suggestions and tips that are present in this forum but I cant find a way to make this rule work. I want that if a specific url is requested that nginx redirect permanently ...
0
votes
1
answer
476
views
htaccess parameter to subdomain
I would like to redirect this
http://www.domain.com/test.php?sub=subdomain&type=cars
redirects to
http://subdomain.domain.com/cars
I already have mod_rewrite rules to do the opposite:
...
1
vote
1
answer
570
views
Accessing domain redirects to subdomain and displays ip instead of hostname in browser
I am trying to set up a domain and some subdomains in a vps. This seems to work correctly when I access through Firefox but on my phone or on Chrome I am redirected to the subdomain. This is the ...
1
vote
0
answers
431
views
RewriteCond if folder with parametername exists
I want to make a subdomain-redirect if a folder with the same name as the typed subdomain exists.
e.g. I have some folder-structure like
www.mysite.de/mainpage/hui.php
and want to be able to access it ...
1
vote
1
answer
646
views
How to force a subdomain as a default domain but keep other subdomains working?
I have a WordPress site installed at http://www.example.com and another testing WordPress site at http://test.example.com. I've successfully made http://www.example.com redirect to http://beta.example....