Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Domain mapping

6,963 views

Published on

Published in: Technology

Domain mapping

  1. 1. Domain Mapping with WordPress 3.0 Presented by Andrea Rennick WordCamp Chicago June 5 th 2010
  2. 2. Who am I? <ul><li>@andrea_r on twitter </li></ul><ul><li>andrea_r on the WordPressMU support forum </li></ul><ul><li>http://wpmututorials.com </li></ul><ul><li>Cape-wearing Super Admin on other sites & networks </li></ul>
  3. 3. Sponsored by My mom http://atypicalife.net/mam/ Thanks Mom.
  4. 4. Overview <ul><li>How to enable the network </li></ul><ul><li>Multiple sites </li></ul><ul><li>DNS magic </li></ul>The point: Running multiple WordPress blogs/sites from one install on one server.
  5. 5. Enable the Network <ul><li>Menu hidden </li></ul><ul><li>Add line to config to show it: </li></ul><ul><ul><li>define('WP_ALLOW_MULTISITE', true); </li></ul></ul><ul><ul><li>Visit Tools -> Network </li></ul></ul><ul><ul><li>Follow steps </li></ul></ul>http://codex.wordpress.org/Create_A_Network
  6. 8. Network Gotchas <ul><li>Wildcard subdomain support from webhost </li></ul><ul><li>Subfolder option disabled if your blog is more than a month old </li></ul><ul><ul><li>Can workaround </li></ul></ul><ul><ul><li>Inserts /blog/ in the permalink of main site </li></ul></ul><ul><ul><li>Can also be disabled </li></ul></ul>
  7. 9. Create our second site <ul><li>Visit Super Admin -> Sites </li></ul><ul><li>Add a Site. </li></ul><ul><li>Yes, it really is that easy. </li></ul><ul><ul><li>Make sure it works first. </li></ul></ul>Sample site: Mommieblogs.com see: sillyandrea.mommieblogs.com
  8. 11. The Magic Plugin <ul><li>WordPress MU Domain Mapping </li></ul><ul><ul><li>http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/ </li></ul></ul><ul><li>Can install via backend, but you will have to move files </li></ul><ul><li>Mu-plugins or network activate? </li></ul>sunrise.php to /wp-content/ define( 'SUNRISE', 'on' ); in wp-config
  9. 12. Super Admin settings <ul><li>Find your IP address </li></ul><ul><li>Can use a CNAME instead </li></ul><ul><li>Domain options </li></ul><ul><ul><li>Remote login </li></ul></ul><ul><ul><li>Permanent redirect </li></ul></ul><ul><ul><li>User domain page </li></ul></ul><ul><ul><li>Redirect admin </li></ul></ul>
  10. 14. Map the Domain to the Site <ul><li>Visit your second site </li></ul><ul><li>Tools – Domain Mapping </li></ul><ul><li>Fill in the options & save </li></ul>sillyandrea.mommieblogs.com sillyandrea.com
  11. 17. Tell the Server <ul><li>Park the domain in Cpanel </li></ul><ul><ul><li>What if it's an add-on domain? </li></ul></ul>
  12. 19. Tell the Server II <ul><li>Geek part: add it to the vhost entry </li></ul><VirtualHost mommieblogs.com> ..... DocumentRoot /var/www/html/mommieblogs ServerName mommieblogs.com ServerAlias *.mommieblogs.com sillyandrea.com ..... </VirtualHost>
  13. 20. Mapping in Volume <ul><li>VPS or dedicated </li></ul><ul><li>Access to Apache configs or really good support team </li></ul>
  14. 21. Named wildcard host NamedVirtualHost 96.30.51.123 <VirtualHost 96.30.51.123> ..... DocumentRoot /your/wp/install ServerName mommieblogs.com .... </VirtualHost>
  15. 22. DNS time <ul><li>A record </li></ul><ul><li>IP address </li></ul><ul><li>wait </li></ul>
  16. 25. Live Examples <ul><li>http://ronandandrea.com </li></ul><ul><li>http://wpmututorials.com </li></ul><ul><li>http://freebpthemes.com </li></ul>That's it!
  17. 26. Multiple Networks <ul><li>atypicalife.net on same install as previous examples </li></ul><ul><li>Has member sites </li></ul><ul><ul><li>/mam/ </li></ul></ul><ul><ul><li>/recipes/ </li></ul></ul><ul><ul><li>/san/ </li></ul></ul><ul><ul><li>/sarah/ </li></ul></ul>
  18. 27. Our Plugin <ul><li>Domain Mapping </li></ul><ul><li>Multiple Networks </li></ul><ul><li>Awesome documentation included </li></ul><ul><li>Very affordable </li></ul>http://wpmututorials.com/simple-multi-site-plugin-e-book/
  19. 28. Thanks! <ul><li>Follow me on twitter @andrea_r </li></ul><ul><li>More tutorials at: </li></ul><ul><ul><li>http://wpmututorials.com </li></ul></ul>

×