Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: How to forward www and all wildcard *. to domain? |
|
Author |
|
akissz
Joined: 01 Jan 2024 Posts: 1
|
Posted: Mon 01 Jan '24 21:24 Post subject: How to forward www and all wildcard *. to domain? |
|
|
How to forward www. and all wildcard *.domain.extension to domain.extension that has one single ssl cert that is not a wildcard cert and not a cert for www., only a ssl cert for domain.extension? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Thu 04 Jan '24 10:23 Post subject: |
|
|
You want to create a fetch all vhost
Code: |
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^example\.com$ [NC]
RewriteRule ^(.*)$ https://example.com/$1 [R=301,L]
|
|
|
Back to top |
|
|
|
|
|
|