[solved] Admin site access when site is marked as "down"

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
jakub7
New Member
New Member
Posts: 7
Joined: Wed Jan 28, 2009 2:09 pm

[solved] Admin site access when site is marked as "down"

Post by jakub7 »

Hi all, I've been trying to search for solution of my problem for two days with no results so far.

I'm building a site. It works fine on localhost. Before I release it to public, I would like to test it on my web hosting server. Therefore I would appreciate if there was a possibility to access the site (the full site, not only the admin part) when I'm logged in as admin even when the "Enable Site Down Message" is activated. Is that possible with CMSMS 1.5.2?

I will appreciate any hint.
Cheers, Jakub
Last edited by jakub7 on Fri Jan 30, 2009 9:35 pm, edited 1 time in total.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Admin site access when site is marked as "down"

Post by jmcgin51 »

I would also love this functionality, but I am not aware that it is possible now.  Hopefully one of the dev team can confirm one way or the other.
Ziggywigged
Power Poster
Power Poster
Posts: 424
Joined: Sat Feb 02, 2008 12:42 am
Location: USA

Re: Admin site access when site is marked as "down"

Post by Ziggywigged »

I think this function is geared more towards updating the actual CMS system without your users getting in a panic because something doesn't work all of a sudden.

What you could do is make a new 'Coming Soon/Work in Progress' page without any links and set it as the default. Then you can freely work on the other pages in the meantime.
Take a penny, leave a penny.
jakub7
New Member
New Member
Posts: 7
Joined: Wed Jan 28, 2009 2:09 pm

Re: Admin site access when site is marked as "down"

Post by jakub7 »

This workaround came to my mind but it's far from being neat.. I'm not a programmer but I imagine it should not be too difficult to check if user is an admin ald logged in (session active?) before redirecting to the Site down page.
Videx
Forum Members
Forum Members
Posts: 15
Joined: Wed Sep 10, 2008 2:58 am

Re: Admin site access when site is marked as "down"

Post by Videx »

I've always wondered why none of the upgrading instructions turn off the cms first. Is that what this button is supposed to be for? If so, it should be clearly labeled "Turn off the cms and display this message".
jakub7
New Member
New Member
Posts: 7
Joined: Wed Jan 28, 2009 2:09 pm

Re: Admin site access when site is marked as "down"

Post by jakub7 »

This has nothing to do with upgrade or installation. My idea is following: Admin should have the option to browse his site even when for everybody else it will appear as "down/under construction/whatever"
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Admin site access when site is marked as "down"

Post by Dr.CSS »

If you put an index.html in the root, with or w/o anything in it you will see the site from inside the admin, click view site button, but others going to "thesite.com" will see the index.html...

The view site button goes to index.php...
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Admin site access when site is marked as "down"

Post by jmcgin51 »

this is assuming that you have index.html set up first in your list of index files.  if you have index.php first, then the server will serve up index.php and ignore index.html
jakub7
New Member
New Member
Posts: 7
Joined: Wed Jan 28, 2009 2:09 pm

Re: Admin site access when site is marked as "down"

Post by jakub7 »

I guess it can be temporarily covered by properly configured .htaccess file. It looks like a workaround that I can use. I will give it a try and let you know. I would still prefer if it was directly included in the CMS
jakub7
New Member
New Member
Posts: 7
Joined: Wed Jan 28, 2009 2:09 pm

Re: Admin site access when site is marked as "down"

Post by jakub7 »

OK mark's solution works fine for testing puposes. I still have weird feeling cos all pages are in fact accessible if somebody/search engine knows the exact address.

Thank you all for your contribution!
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Admin site access when site is marked as "down"

Post by calguy1000 »

and even now... with the sitedown message... if the google master searches your site because you submitted a sitemap... and tries to access 47 different URLS... and they get the same 'site down' content.... isn't that duplicate content?

I know that we return a 404 error code in this case, and display the content.  and that google interprets it correctly.

but... I'm just being sarcastic because of the numerous (stupid) threads about duplicate content lately.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “CMSMS Core”