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

javascript - Hide toolbar of pdf file opened inside iframe using firefox -

Copy range with conditional formatting -

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