lundi 30 octobre 2017

Using RewriteEngine / mod_rewrite for login system?

Is it possible to build a login system using mod_rewrite? To be more specific on the problem: I have some static webpages that are build by a website generator and cannot modify by myself. But these webpages and their original URLs shall not be able to be accesed by the public. There is also a WordPress website using a login-system running on the same domain.

So, my idea to protect the static webpages to the public was to use a mod_rewrite rule, based on the WP session cookie. Is that even possible? Or is there even a cleaner and simpler solution for that?

Cheers, Valentin




Aucun commentaire:

Enregistrer un commentaire