php - Use "RewriteEngine on" in .htaccess only if the visitor is in a session -


so user not logged see same link user logged, difference logged user see different page after following link.

please note link stay intact, meaning don't want replace final url one. also, avoid playing cookies.

if can't done using rewriteengine, there way involving .htaccess / php?

no need related .htaccess.

combine both pages 1 , wrap content logged in users should see if logged_in() {...} or whatever can use check if user logged in.

that should enough.


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -