-
- 368 Posts
Currently when I have a site in the "review" stage - i.e. it is ready for the client and the client’s employees to review, but must be kept disabled so that the rest of the world doesn’t see it - I have to create a special username and password for the client to log into the manager, which he has to use every time he wants to look at changes on the site. It would be much more convenient if I could generate a random URL, e.g. example.com/48jm1kujcmieee98asdf1, that would allow anyone who knows the URL, not to access the manager, but just to get around the site unavailable page and view the site. This would also be a big help when browser-testing an unpublished site with a non-manager-compatible browser like IE6 or 7.
Would anybody else like to see this?
Jason
You could add something like that to the alias prefix, then remove the setting once the site goes live.
-
- 150 Posts
That sounds like a good idea.
Another thing you can do is htaccess password access
http://www.elated.com/articles/password-protecting-your-pages-with-htaccess/.
If you want to show something other than a password dialog to regular visitors, I found a script for an all-encompassing htaccess file that allows for one file (place an index.html file in your root and it should override the index.php):
http://perishablepress.com/press/2009/07/13/htaccess-password-protection-tricks/. You have to scroll some ways down to find the script, but it is there.
"Great spirits have always encountered violent opposition from mediocre minds." -Albert Einstein
-
- 150 Posts
Quote from: kenquad at Apr 15, 2011, 03:26 PM
I’m sure this would work, but I still think my idea would be more convenient (for me, not the MODx devs )
I agree, on the other hand though, this is a quick and dirty fix.
"Great spirits have always encountered violent opposition from mediocre minds." -Albert Einstein
-
- 15 Posts
best way is to set up a subdomain; development.yourdomain.com in a directory development, then when you move it up a directory, you change the config files to match.
....or you can even set it up in root if you use another base for your URL in system settings (and obviously leave FURLs off).
I often just change the site_start setting to a splash page - ie a page that says the site is under construction and offers some contact details.
And then I tell the client to go to site.com/home.html.
When the site’s done, just change the site_start setting again.