Non-WordPress Site .htaccess Help


#1

I have a website which analyze seo stats of other websites. It is not about the subdomain or wordpress website.

The current url after analyzing the domain looks like.

https://example.com/linkedin.com.html
https://example.com/tumblr.com.html
https://example.com/flickr.com.html
https://example.com/sourceforge.net.html

.htaccess file containts

<IfModule mod_rewrite.c>
RewriteEngine On
Options -Multiviews
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*).html$ show.php?url=$1 [L]
</IfModule>

How can I make the URL to work like.

https://linkedin.com.example.com
https://tumblr.com.example.com
https://flickr.com.example.com
https://sourceforge.net.example.com

==============

I tried:

RewriteCond %{QUERY_STRING} !url=
RewriteCond %{HTTPS_HOST} ^([^\.]+)\.example.com$ [NC]
RewriteRule ^(.*)$ show.php?url=$1 [L,QSA]

This site can’t be reached facebook.com.example.com’s server DNS address could not be found.
I added the domain wildcard as well.