conker87 Posted May 5, 2008 Share Posted May 5, 2008 I've got a small community site and wanting to see something up where I just disable an area of the site really quickly, for testing purposes, security etc. However, I'm rather stuck on how I should go about it. Anyone got any ideas at all? Link to comment https://forums.phpfreaks.com/topic/104173-disable-areas-of-site/ Share on other sites More sharing options...
dooper3 Posted May 5, 2008 Share Posted May 5, 2008 You could create a "temporarily disabled" webpage and upload it then use mod_rewrite in the .htaccess file to point all disabled files to the new webpage when a user tries to go to them Link to comment https://forums.phpfreaks.com/topic/104173-disable-areas-of-site/#findComment-533305 Share on other sites More sharing options...
conker87 Posted May 5, 2008 Author Share Posted May 5, 2008 Well, I have an admin page, only accessible to me, and I want to be able to use a form to change them whenever I please. Link to comment https://forums.phpfreaks.com/topic/104173-disable-areas-of-site/#findComment-533307 Share on other sites More sharing options...
dooper3 Posted May 5, 2008 Share Posted May 5, 2008 You can add an admin page that allows you to open and edit the .htaccess file... Look up fopen() and similar functions, as well as google searching mod_rewrite. You WILL still have to do some coding of the admin area to make this happen if you want to add it to your admin abilities. Link to comment https://forums.phpfreaks.com/topic/104173-disable-areas-of-site/#findComment-533324 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.