I try to make a regular expression in a .htaccess file, that matches only an empty string.I have tried many things, but it seems like its impossible. For example, I tried ^$, but it's looking for  that will always exist in a string.So I seek answers to it all possible.If possible, I would like to hear how to extend such a regular expression together.Here is the content of my .htaccess file: RewriteEngine OnRewriteRule ^$ https://stald-mariendal.dk/index_tekst [R=302,L]RewriteRule ^guestbook.html$ https://stald-mariendal.dk/gaestebog [R=301,L,NE]RewriteRule ^sites/guestbook.html$ https://stald-mariendal.dk/gaestebog [R=301,L,NE]RewriteRule ^guestbook$ https://stald-mariendal.dk/gaestebog [R=301,L,NE]RewriteRule ^(\w+).html$ https://stald-mariendal.dk/$1 [R=301,L,NE]RewriteRule ^sites/(\w+).html$ https://stald-mariendal.dk/$1 [R=301,L,NE]RewriteCond %{HTTPS} onRewriteRule ^(\w+)$ ?site=$1.html [L]RewriteCond %{HTTPS}| offRewriteRule (.*) https://stald-mariendal.dk%{REQUEST_URI} [R=301,L,NE]
How can I get a regular expression to only match an empty string? (In a .htaccess file)
htaccess;redirects;apache;mod rewrite;regular expression