Deep link (push state id) isn´t working

I think it depends on the httpaccess. If i have a url like this: mydomain.com/someid the site thinks it´s a subfolder.

On other sites i got it working with a change like that:
RewriteRule ^([a-zA-Z0-9_-]+)/?([a-zA-Z0-9_-]+)?/?([a-zA-Z0-9_-]+)?/?([a-zA-Z0-9_-]+)?/?$ index.php?s=$1&a=$2&b=$3&c=$4 [NC,L,QSA]
But i don´t know Kirby good enough to find a working way to implement it to the httpaccess.

Is there any way to change the rewrite rule, that it´s possible to use that kind of deeplinking?

What exactly do you want to achieve?

On scroll i phush the id of the div wich is in the viewport at this moment as an append to the url link: mydomain.com/someid so i can deep link every content on a single page site -> and if you come to the site with that url the site is scrollin automatically to the div with the id: someid. It works with mydomain.com/#someid but that cant be the solution.

Yay, it´s working now. Thank you so much. Genious.