Ultimate Multisite 101
Ultimate Multisite એ WordPress Multisite plugin છે જે તમને ગ્રાહકોને WaaS અથવા Websites as a Service ઓફર કરવાની ક્ષમતા આપે છે. આપણે Ultimate Multisite તમારા વ્યવસાય અને ગ્રાહકોને કેવી રીતે મદદ કરી શકે છે તે શીખવા પહેલાં, કેટલાક પાયાના જ્ઞાનની જરૂર છે.
The WordPress Multisite
આપણામાંથી મોટાભાગના લોકો સ્ટાન્ડર્ડ WordPress installation થી પરિચિત છે. તમે કાં તો તમારા hosting provider ના control panel દ્વારા તેને બનાવો છો અથવા, હિંમતવાળા લોકો માટે, નવો web server અને database સેટઅપ કરો, core files ડાઉનલોડ કરો અને installation પ્રક્રિયા શરૂ કરો.
આ દુનિયાભરની લાખો WordPress sites માટે કામ કરે છે પરંતુ agency અથવા hosting provider ના દૃષ્ટિકોણથી ચાલો થોડીવાર volume વિશે વાત કરીએ.
જ્યારે એક WordPress site બનાવવી અથવા automated control panel દ્વારા સો sites બનાવવી સરળ છે, આ sites ના management ની વાત આવે ત્યારે સમસ્યાઓ જલ્દી દેખાવા લાગે છે. જો management ન થાય તો તમે malware માટે સરળ લક્ષ્ય બની જાઓ છો. Management કરવા માટે મહેનત અને resources ની જરૂર પડે છે અને જોકે WordPress sites ના management અને administration ને સરળ બનાવવા માટે external tools અને plugins ઉપલબ્ધ છે, ગ્રાહકો પાસે administrative access હોવાથી આ બધી મહેનત નિષ્ફળ થઈ શકે છે.
WordPress તેના core માં 'Multisite' નામની feature પ્રદાન કરે છે જેની શરૂઆત 2010 માં WordPress 3.0 ના launch સાથે થઈ હતી. ત્યારથી નવી features રજૂ કરવા અને security મજબૂત કરવા માટે ઘણા revisions આવ્યા છે.
સરળ શબ્દોમાં, WordPress multisite ને આ રીતે સમજી શકાય: એક University WordPress ની single installation રાખે છે પરંતુ દરેક faculty પોતાની WordPress site maintain કરે છે.
આ statement ને સમજવા માટે ચાલો કેટલી મૂળભૂત terminology જોઈએ જે Ultimate Multisite ના documentation માં અને WordPress community માં વપરાય છે.
The Network
WordPress ની દ્રષ્ટિએ, multisite network એ છે જ્યાં એક જ dashboard માંથી ઘણી subsites manage કરી શકાય છે. Multisite network બનાવવું hosting providers વચ્ચે અલગ હોય છે, પરંતુ અંતિમ પરિણામ સામાન્ય રીતે wp-config.php file માં થોડા વધારાના directives હોય છે જે WordPress ને જણાવે છે કે તે આ ચોક્કસ mode માં ચાલી રહ્યું છે.
Multisite network અને stand-alone WordPress installation વચ્ચે ઘણા અલગ તફાવતો છે જેની આપણે ટૂંકમાં ચર્ચા કરીશું.
Subdomain vs. Subdirectory
તમારે જે સૌથી પહેલો નિર્ણય લેવો પડશે તે છે કે multisite installation subdirectories સાથે ચાલશે કે subdomains સાથે. Ultimate Multisite બંને choices સાથે સરખી રીતે કામ કરે છે પરંતુ બે configurations વચ્ચે કેટલાક architectural તફાવતો છે.
subdirectory configuration માં, network sites main domain name પર આધારિત path મેળવે છે. ઉદાહરણ તરીકે 'site1' નામની network site નું full URL https://domain.com/site1 હશે. subdomain configuration માં, network site ને main domain name માંથી derived પોતાનું subdomain મળે છે. આથી 'site1' નામની site નું full URL https://site1.domain.com/ હશે.
જ્યારે બંને options સંપૂર્ણ માન્ય choices છે, subdomains નો ઉપયોગ ઘણા ફાયદાઓ આપે છે પરંતુ તેના architecture માં વધુ વિચાર અને planning ની જરૂર પડે છે.
DNS ની દ્રષ્ટિએ subdirectories નો ઉપયોગ પ્રમાણમાં સરળ challenge છે. કારણ કે network sites parent path ના children છે, ફક્ત main domain name માટે એક domain name entry ની જરૂર છે. subdomains માટે challenge થોડો વધુ complex છે જેમાં દરેક network site માટે અલગ CNAME entry અથવા DNS records માં wildcard (*) entry ની જરૂર પડે છે.
વધુ એક વિચારણા SSL ની છે અને SSL certificates ની issuance અને ઉપયોગની. subdirectory configuration માં એક single domain certificate વાપરી શકાય છે કારણ કે network sites main domain name ના paths છે. આથી domain.com માટેનું certificate https://domain.com/site1, https://domain.com/site2 અને આગળની sites માટે યોગ્ય રીતે SSL પ્રદાન કરશે.
subdomain configuration માં wildcard SSL certificate એ સૌથી સામાન્ય options માંનું એક છે. આ પ્રકારનું SSL certificate domain અને તેના subdomains માટે encryption પ્રદાન કરે છે. તેથી wildcard SSL certificate https://site1.domain.com, https://site2.domain.com અને https://domain.com પોતે માટે encryption પ્રદાન કરશે.
જોકે અન્ય options પણ છે, તે ઘણીવાર scope અને application માં મર્યાદિત હોય છે અને suitability માટે વધારાના configuration અને વિચારણાની જરૂર પડે છે.
Plugins અને Themes
WordPress જે આપે છે તે પાછું પણ લે છે, ઓછામાં ઓછું ગ્રાહકના દૃષ્ટિકોણથી. Stand-alone WordPress installation માં જો site administrator ખરાબ plugin install કરે અથવા તેમની installation up to date ન રાખે તો એકમાત્ર ભોગ બનનાર તેઓ પોતે છે. જોકે, multisite installation પર site administrator ખરાબ plugin install કરે તો network માં installed દરેક site ભોગ બને છે.
આ કારણસર multisite તરીકે configure થયા પછી WordPress site administrators પાસેથી plugins અને themes install કરવાની capability કાઢી નાખે છે અને તેના બદલે આ capability નવા બનાવેલા network administrator અથવા 'super admin' role ને આપે છે. આ privileged role પછી નક્કી કરી શકે છે કે network sites ના administrators ને તેમના dashboard માં plugins menu જોવા અથવા access કરવા દેવું કે નહીં અને, જો હા, તો આ permissions plugins ને activating અથવા deactivating સુધી extend થાય કે નહીં.
આ રીતે network administrator plugins અને themes ને network માં install કરવા અને network sites ને આ plugins અને themes વાપરવાની permissions delegate કરવા માટે જવાબદાર છે. Site administrators plugins અને themes install કરી શકતા નથી અથવા તેમની site ને assign ન કરેલા plugins અને themes access કરી શકતા નથી.
Users અને Administrators
WordPress Multisite માં, બધી network sites એક જ database share કરે છે અને તેથી એ જ users, roles અને capabilities share કરે છે. તેને સમજવાનો સૌથી યોગ્ય રસ્તો એ છે કે બધા users network ના members છે અને કોઈ particular site ના નહીં.
આ સમજણ સાથે users create કરવાની મંજૂરી આપવી અનિચ્છનીય હોઈ શકે છે અને આ કારણસર WordPress Multisite site administrators પાસેથી આ capability કાઢી નાખે છે અને network administrator ને આપે છે. બદલામાં network administrator site administrator ને તેમની પોતાની site માટે user accounts બનાવવાની જરૂરી privileges delegate કરી શકે છે.
ઉપરનું statement ફરીથી કહેતાં, જોકે user accounts site સાથે સંબંધિત દેખાય છે તેઓ ખરેખર network ને allocated છે અને તેથી network માં unique હોવા જોઈએ. આ કારણસર કેટલાક usernames register કરવા માટે unavailable હોઈ શકે છે.
જોકે enterprise systems માં આ foreign concept નથી, user registration અને authentication નો આ single source stand-alone WordPress installations થી પરિચિત લોકો માટે ઘણીવાર સમજવામાં મુશ્કેલ concept છે જ્યાં user administration કંઈક વધુ સરળ છે.
Media
જ્યાં WordPress Multisite માં network sites single database share કરે છે, તેઓ media files માટે filesystem પર અલગ paths maintain કરે છે.
Standard WordPress location (wp-content/uploads) રહે છે; જોકે, તેનો path network site ના unique ID ને reflect કરવા માટે બદલાય છે. પરિણામે network site માટે media files wp-contents/uploads/site/[id] તરીકે દેખાય છે.
Permalinks
આપણે પહેલાં જણાવ્યું કે subdirectory configuration કરતાં subdomain ના distinctive advantages છે અને અહીં તે છે: paths.
subdirectory configuration માં, main site (network establish થાય ત્યારે બનાવેલી પ્રથમ site) અને network subsites ને domain name થી શરૂ થતા એક જ path share કરવો પડે છે. આમાં ઘણા conflicts ની possibility છે.
Posts માટે, network sites સાથે clashes અટકાવવા main site ને mandatory /blog/ path add થાય છે. આનો અર્થ છે કે 'Post name' જેવા pretty permalinks domain.name/blog/post-name/ તરીકે present થશે.
subdomain configuration માં આ action જરૂરી નથી કારણ કે દરેક network site complete domain separation નો ફાયદો મેળવે છે અને તેથી single path પર depend રહેવાની જરૂર નથી. તેઓ તેના બદલે પોતાના subdomain પર આધારિત પોતાના distinct paths maintain કરે છે.
Static Pages
subdirectory configuration માં naming conflicts ની possibility static pages સુધી extend થાય છે કારણ કે main site અને network sites એક જ path share કરે છે.
આને અટકાવવા, WordPress certain site names ને blacklist કરવાનો રસ્તો પ્રદાન કરે છે જેથી તેઓ first site ના names સાથે conflict ન થાય. સામાન્ય રીતે network administrator main site ના pages ના root paths enter કરશે.
subdomain configuration માં naming conflicts ની possibility subdomain દ્વારા mitigate થાય છે કારણ કે તે network site માટે unique છે અને main site સાથે કોઈ રીતે સંબંધિત નથી.
Registration
WordPress Multisite ના network settings માં ઘણા નવા user registration options ઉપલબ્ધ છે, જે નવા અને existing users ને sites create કરવાની મંજૂરી આપે છે.
Stand-alone WordPress installations ની વિરુદ્ધ, network sites user registrations allow કરવા અથવા તે registrations ને roles assign કરવાના familiar options maintain કરતી નથી.
જ્યારે user accounts create થાય છે ત્યારે તે accounts network level પર generate થાય છે. આથી કોઈ એક particular site ના હોવાના બદલે તેઓ network ના છે. આના કેટલાક distinctive advantages અને disadvantages છે.
ઉદાહરણ તરીકે, ધારો કે તમારું WordPress Multisite news અને information ના business માં હતું. તમે multisite establish કરશો અને પછી finance, technology, entertainment અને interest ના અન્ય areas માટે network sites create કરશો જ્યારે plugins અને themes પર overall control રાખશો. દરેક network site પછી custom post types અથવા regular post categories કરતાં તેમની network site ના look અને feel અને user experience પર ઘણો વધારે control ધરાવશે.
આ રીતે જ્યારે user log in કરે છે ત્યારે તેઓ network માં log in કરે છે અને આખરે દરેક network site માં પણ log in થઈ જાય છે જે seamless experience આપે છે. જો તમારી new site subscription based હોય તો આ ideal solution અને outcome હશે.
જોકે, જો multisite નો intended purpose disparate network sites offer કરવાનો હોય જેમનો એકબીજા સાથે કોઈ relationship નથી તો લગભગ હંમેશા user roles ને manipulate કરવા માટે external અથવા additional plugins ની જરૂર પડે છે.