logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: How to forward www and all wildcard *. to domain?
Author
akissz



Joined: 01 Jan 2024
Posts: 1

PostPosted: Mon 01 Jan '24 21:24    Post subject: How to forward www and all wildcard *. to domain? Reply with quote

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: 7298
Location: Germany, Next to Hamburg

PostPosted: Thu 04 Jan '24 10:23    Post subject: Reply with quote

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


Reply to topic   Topic: How to forward www and all wildcard *. to domain? View previous topic :: View next topic
Post new topic   Forum Index -> Apache