Site under a site
Posted: Thu Feb 07, 2008 8:56 pm
Evening everyone,
I have a question,
I have a site that is not completely built yet. It is not built in Joomla but will be in the future. There is a folder on the server that contains a Joomla based site however. What I want to happen is there is going to be a php login on the root directory that once you login you are redirected to for example: http://www.mysite.com/joomlasite/ . My question is how can I do this so that if anyone goes to http://www.mysite.com/joomlasite/ they are prompt with you must be logged in and a link back to the login page in the root directory.
I am guessing a session variable to be pushed when redirected to the http://www.mysite.com/joomlasite/ and the template for the Joomla based directory to contain a way to look for this variable and if it exists show the site if not show you must be logged in to view this resource.
Any help would be great.
Thanks,
-Mike
I have a question,
I have a site that is not completely built yet. It is not built in Joomla but will be in the future. There is a folder on the server that contains a Joomla based site however. What I want to happen is there is going to be a php login on the root directory that once you login you are redirected to for example: http://www.mysite.com/joomlasite/ . My question is how can I do this so that if anyone goes to http://www.mysite.com/joomlasite/ they are prompt with you must be logged in and a link back to the login page in the root directory.
I am guessing a session variable to be pushed when redirected to the http://www.mysite.com/joomlasite/ and the template for the Joomla based directory to contain a way to look for this variable and if it exists show the site if not show you must be logged in to view this resource.
Any help would be great.
Thanks,
-Mike