Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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
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
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
0 votes
1 answer
261 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....
edwarddeath's user avatar
0 votes
1 answer
110 views

Configure SSL for Apache Reverse Proxy

I want to redirect HTTPS connections to my domain towards a unique subdomain using Apache2 reverse proxy. I want all the connections that come to a.example.com to be redirected towards $random$.b....
Mnemosyne's user avatar
  • 131
0 votes
1 answer
367 views

Apache2 how to generate random string for subdomain

I want to issue a redirect to a new randomly generated subdomain name for every request I get. Below you can find my vhost configuration. I want to do a redirect towards a subdomain containing some ...
Mnemosyne's user avatar
  • 131
1 vote
1 answer
187 views

How Can We Do 301 Redirect Of Over 200 Pages To Corresponding 200 Pages At New Location?

I need help and need it fast. We recently migrated a subdomain to integrate with the domain. Eg. https://blog.example.com to https://www.example.com/blog https://blog.example.com has a ton of traffic ...
user18571's user avatar
0 votes
1 answer
295 views

Exclude specific URL from HTTP to HTTPS redirect in apache2 virtual host

I'm looking for an easy configuration to exclude a specific URL(pattern) from my apache2 HTTP to HTTPS redirect and failed so far. Background is an API with typical authorization mechanics which ...
StarFighter's user avatar
2 votes
1 answer
2k views

Redirect part of a URL parameter to the URL-Path

I used a module that created links like this: https://example.com/login?create_account=1&back=https://example.com/product/2164/?ets_rv_add_review=1 I need to redirect them to: https://example.com/...
Ehsanai's user avatar
  • 21
1 vote
1 answer
110 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 (...
SecurityWho's user avatar
0 votes
1 answer
931 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 ...
Excellent Exim House's 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 ...
thermike's user avatar
0 votes
1 answer
22 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....
Anton A's user avatar
  • 39
0 votes
1 answer
206 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 ...
Thamognya Kodi's user avatar
0 votes
1 answer
496 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 ...
Meadowlark Marsh's user avatar
0 votes
1 answer
785 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 ...
Chris Woelkers's user avatar
0 votes
1 answer
245 views

apache2 is directing to wrong path when using https for sub domains

I have an ssl wildcard cert (letsencrypt) for example.de & *.example.com. My 000-default.conf looks like: <VirtualHost *:80> # The ServerName directive sets the request scheme, hostname ...
Zappenduster's user avatar
2 votes
1 answer
896 views

How to get line number of error that .htaccess apache2 is reporting in /var/logs/error.log

I get a internal server error after adding redirects to .htaccess - I've added 600 of them. I check /var/logs/error.log [Wed May 12 16:26:02.600394 2021] [core:alert] [pid 8071] [client 127.127.127....
therobyouknow's user avatar
0 votes
1 answer
888 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 ...
Arkaik's user avatar
  • 113
1 vote
1 answer
4k 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 ...
Arkaik's user avatar
  • 113
0 votes
1 answer
369 views

Force redirect from http://host.com:8080 to https://host.com with nginx + apache2

I'm using nginx and Apache 2 : Here is my configuration in nginx: server { listen 80; server_name hostexemple.com; root /home/user/web/www/public; # Redirect requests ...
injetkilo's user avatar
  • 101
2 votes
1 answer
4k views

Apache2 - default SSL/HTTPS page - aka. <VirtualHost *:443>

This is a very simple question. I have several websites hosted. Some are HTTP, some are HTTP and HTTPS. It all works. However, if I mess up an SSL site by pointing a domain at my server where the SSL ...
Apache's user avatar
  • 314
1 vote
1 answer
320 views

"redirect permanent" doesn't stop

I configured SSL/TLS for a site, and added a redirect line to the original config. Redirect permanent / https://mypage/ And it worked fine. Now i was tasked to make it back. I deleted the SSL-based ...
Tornyai Péter's user avatar
0 votes
0 answers
14 views

Redirect Url on Apache Server

i have this url: https://pouv.com/presentation/vues/restreint/gestionnaire/**** i want to redirect to: https://pouv.com/bo/ I do this on my .conf: ## Rewrite rules RewriteEngine On RewriteRule ...
Mercer's user avatar
  • 113
1 vote
0 answers
38 views

Combine rewriting and redirection rules in Apache

I have VirtualHost configurations in Apache which used to use the RewriteEngine to do some URL corrections and finally pass control to one (or more, using mod_proxy_balancer) Zope/Plone instances. Now,...
Tobias's user avatar
  • 165
0 votes
2 answers
436 views

How to redirect http to https while the other folder stays http?

I have 2 folders, CRM and my_website. The my_website can be access to https://example.com/ (it will change http to https), while the CRM is http://example.com/crm. and this is my virtual host 000-...
Storm Spirit's user avatar
1 vote
1 answer
542 views

apache2.4 with vhosts & TLS certificates: certificate for wrong vhost presented

I operate a server hosting multiple virtualhosts with apache2.4. A newly hosted domain (https://www.yachtenwelt.de) is correctly using the respective TLS certificate. In addition, I have to ensure ...
DHopf's user avatar
  • 13
0 votes
0 answers
302 views

Apache2 default subdomain redirect

My hoster directly resolves *.mydomain.tld to my server, whitout having to setup subdomains manually. This nicely allows me to add subdomains using virtual hosts. Now the problem with that is that ...
Mr.Manhattan's user avatar
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....
Guidable's user avatar
0 votes
1 answer
294 views

Two sites on the same server with unwanted redirection

I have two different sites domain1.com domain2.com Problem : I only can access domain2.com by using www.domain2.com If i try domain2.com it redirects to domain1.com. Configuration files: domain1....
Ianagos's user avatar
  • 11
0 votes
0 answers
554 views

Home page in infinite loop nginx misconfiguration (cache, nginx + varnish)

HomePage Redirect problem Result https://www.example.com 301 Moved Permanently https://www.example.com/ 301 Moved Permanently https://www.example.com/ 301 Moved Permanently https://www.example.com/ &...
Jack Duldi's user avatar
0 votes
1 answer
133 views

Apache2, redirect to homepage when you visit folder with exact name

Issue In apache, how can I redirect to homepage in case if you will go to exact string, but everything behind this string should be displayed normally, no redirect. Example. http://example.com/...
genderbee's user avatar
  • 891
0 votes
1 answer
32 views

Apache Universal Redirect - Except For Certain Sub-Domain

I have a configuration file for an Apache web server. It simply has one Redirect line in it now. The idea is that any domain name hosted on the server will redirect this path to webmail: Redirect /...
Brian Spraker's user avatar
1 vote
0 answers
191 views

apache redirectmatch capture groups not injecting to destination properly

I'm trying to redirect requests to my old git server (with my old username) to the new server (with my new username). I'm trying to set up the following conditions: If url is of the form http(s)://...
garrettmills's user avatar
0 votes
1 answer
480 views

Apache2 / Redirect to Subfolder w/ ReverseProxy

I am attempting to redirect / to a subfolder on an Apache2 reverse proxy server vhost for a server behind it. Reverse proxy is working, however the redirect is not. What would be the best way to do ...
bobbirkely's user avatar
0 votes
1 answer
2k views

Forcing to redirect https to http in Apache 2.4

I am trying the following. I have a domain where I publish. This publication is only by http, but I need all requests by https to redirect me to http since I do not have ssl certificate installed and ...
admatlantis's user avatar
0 votes
1 answer
374 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 ...
builder-7000's user avatar
0 votes
1 answer
377 views

Apache2 default page shows without http://, https:// or www. prefix

I am running a django webapp on a ubuntu 19.04 server with apache2. I have installed a SSL certificate with certbot and I'm unable to direct traffic from domainname.com to https://www.domainname.com. ...
ThomasW's user avatar
  • 101
0 votes
1 answer
54 views

Multiple redirects with 301 apache from https://domain.tld to https://domain.tld/subdir/

I have the current setup with Apache2, lets encrypt to move http://domain.tld => https://domain.tld http://www.domain.tld => https://www.domain.tld Its working perfect, Now I wanted move ...
indianwebdevil's user avatar
1 vote
0 answers
3k views

Grafana with SSL and Apache reverse proxy continuously redirects

I am attempting to move my Grafana install from a non-SSL to SSL link. It sits behind an Apache reverse proxy and worked fine before I tried to set up SSL. I have seen many tutorials that look like ...
NewGuy's user avatar
  • 111
0 votes
0 answers
61 views

Why http still redirects to http in HTTPD?

I've generated https certificates with certbot for website, but didn't pre-generate configs for https automatic redirects from http. Now I'm trying to configure it manually, but with this ...
Павел Иванов's user avatar
0 votes
1 answer
226 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 ...
Flying_Banana's user avatar
-1 votes
1 answer
9k views

modern installation of Tomcat with SSL on port 443

In the computer course I'm writing I'm using Tomcat for the server. (Students learn how to set up CentOS and everything from scratch. Currently the course has them using Tomcat running on port 8080.) ...
Garret Wilson's user avatar
1 vote
2 answers
95 views

Apache2: two redirects

I would like to redirect all URLs to https on my host and root folder to sub-folder. My configuration: Redirect permanent / https://myhost.com/ RedirectMatch ^/$ /sub-folder/ The first redirect ...
dannyx's user avatar
  • 31
1 vote
0 answers
240 views

Apache .conf to redirect all http subdomains to corresponding https subdomains via wildcard alias

I need to point each http://sub.example.com subdomain to its corresponding https://sub.example.com. This is for use with WordPress multisite and my wildcard DNS records and wildcard Certbot cert. ...
Jesse's user avatar
  • 261
1 vote
1 answer
183 views

Apache Rewrite not working

I have a very strange thing happening in my apache2 setup. I just want to redirect HTTP to HTTPS. I have tried all possible ways, like this: RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^/?...
user2908112's user avatar
0 votes
1 answer
2k views

Autodiscover 404

After much research and testing, I have implemented the redirect rules to have autodiscover check elsewhere than on my web server. With this post, I am trying to figure out what may be wrong (could be ...
Michael Purvis's user avatar
1 vote
1 answer
445 views

.htaccess 301 redirect remove [] from the URL

I want to remove '[' and ']' from the URLs and redirect to correct link. Here is a sample URL: /forums/garage-150/cool-cars-sightings-[archived]-7610/index127.html Needs to be redirected to: /...
duterte's user avatar
  • 13
1 vote
1 answer
3k views

Apache: Redirect all .html AND .php requests to folder + WordPress

After a relaunch I have a bunch of dead backlinks pointing at URLs with .php or .html file-extensions. It would be nice to redirect them in bulk using .htaccess and the mod_rewrite module. The ...
schuggerleo's user avatar
2 votes
2 answers
3k views

Redirect https://www to https:// [closed]

I use this RewriteEngine On RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^ https://kanzan.se%{REQUEST_URI} [L,NE,R=301] to redirect ALL www to non-www, but it ...
user2908112's user avatar