![]() |
Easy WordPress Automated Subdomain (for developers only)
Thought I would make a post for all you developers out there.
I try and avoid WordPress Multisite/Network when I can. But I often find I have to setup many sites for testing. I thought I would share a quick and easy way to do this via .htaccess and apache 1.3 or 2.x First your apache entry for httpd.conf 192.168.1.180 is the domains ip address for this example, and mydomain.com is the domain you are setting this method up for. Remember you need to add a *.mydomain.com entry either into your dns, or via your dns control panel with your host. Code:
<VirtualHost 192.168.1.180> You will want to make a subdirectory in your mydomain.com directory called subs here is the apache entry for 2.x Code:
Options +FollowSymLinks so create a subdirectory in /subs say for links, which would be mapped to links.mydomain.com so now links.mydomain.com will serve files in /subs/links. For those running apache 1.3 here is the correct htaccess Code:
Options +FollowSymLinks I find this easier for me to develop without adding entries each time to my server config. :thumbsup |
bump for developers ;)
|
you shall be rewarded with pussy lips
|
|
Thanks dude :thumbsup passed it on to my techie, said it was useful :)
|
How come u don't like Wordpress MS? I love to use it for building and testing. Thanks for the tip.
|
very nice,thank you so much for your time and effort :thumbsup
|
All times are GMT -7. The time now is 11:30 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123