grumpy Posted March 25, 2015 Share Posted March 25, 2015 I have an existing website. I have installed processwire in my root directory and it all works fine. I have set all the existing sample pages to unpublished mode while I build up the replacement website using processwire. My problem is that I have now two index files: my original index.html and the new processwire index.php. Is there a way to set the index.php to be hidden unless called for to log in to processwire, thus leaving index.html as the gateway to my existing website? I know I can put processwire on a subdomain but I need it to link into my genealogy database php pages on my old site. The blurb on my genealogy scripts says: Can be used with Wordpress and other content management systems.Not only does TNG work great on its own, it can also function seamlessly as a module under any of these systems (with single sign-on) when used with an approved freeware add-on program. Use whatever theme you want! Any advice would be much appreciated. Link to comment Share on other sites More sharing options...
LostKobrakai Posted March 25, 2015 Share Posted March 25, 2015 Just use this in the beginning of your templates. if(!$user->isLoggedin()) $session->redirect("/index.html"); 1 Link to comment Share on other sites More sharing options...
grumpy Posted March 25, 2015 Author Share Posted March 25, 2015 Thank you. Done and solved. Link to comment Share on other sites More sharing options...
Recommended Posts