Would there be any way to push a variable DirectoryIndex through .htaccess based on a cookie stored on the client computer?
For example:
I have index.html with plain content and index-alt.html with extra content for a registered user.
Unregistered users without a cookie would receive the default index.html page when accessing
Registered users with a cookie would receive an alternate page (index-alt.html) when accessing the same web address.
My goal is to keep the same URL appearing in the browser's address bar but different content would display in the page. I can do this content switching easily with PHP and putting all content in index.php but I was wondering if the same effect could be achieved with Apache tricks on plain html pages.
- - picklefish - -
Why is everyone in this forum responding to me as picklefish?
For example:
I have index.html with plain content and index-alt.html with extra content for a registered user.
Unregistered users without a cookie would receive the default index.html page when accessing
Registered users with a cookie would receive an alternate page (index-alt.html) when accessing the same web address.
My goal is to keep the same URL appearing in the browser's address bar but different content would display in the page. I can do this content switching easily with PHP and putting all content in index.php but I was wondering if the same effect could be achieved with Apache tricks on plain html pages.
- - picklefish - -
Why is everyone in this forum responding to me as picklefish?