简体   繁体   中英

Bootstrap 3 site: migrate to Wordpress or Password set up

I (pretty much an advanced beginner) created about a 10-page site using Bootstrap 3. It all works great thankfully. Now client wants to password protect entry (either have all users uniquely register or have one entry password for all). My problem: I don't know how to set up a password code. Possible solution: Move all content and CSS to a Wordpress template that will need child theme creation etc...This doesn't seem straightforward either.

Of the two devils I face to beat, which do you suggest (unless there is an easier path?)?

Thanks!

There is another path: using .htaccess to password-protect files or directories.

This only works if you are using apache! There are alternatives for other web servers (nginx, lighttpd, etc).

Start out here:
http://www.elated.com/articles/password-protecting-your-pages-with-htaccess/

Migrating to WordPress really isn't necessary for this, but your options may be dependent on the environment in which your client operates as well as with who he would like to have access to the password-protected portions of the website.

.htaccess, or comparable if you're using nginx or some other web server, is certainly an option if your hosting provider allows it.

You may also integrate with a third-party authentication system like OpenID ( http://openid.net/ ) or Google ( https://developers.google.com/accounts/docs/OAuth2WebServer ) or whatnot--these will often work without requiring any backend changes to Apache and such. This would also likely be less work than creating your own authentication backend.

If your client's users are all Google users, for example, then using Google's authentication system might be a more attractive option. The same would apply for other third-party authentication systems. (Note, too, that you can provide your users with access to multiple third-party authentication systems for more convenience, if necessary.)

I know this is an old thread, but hopefully these ideas provide some insight. :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM