adsense

How to Create Subdomain Wild Cards in WordPress





1. Locate the httpd.conf file for your Web server and add this line:ServerAlias *.yoursite.comIf you use a Web host that doesn't offer access to the Apache Web server settings, you can email technical support and ask if the host supports wild-card subdomains. You can also try going through the other steps and see if they work.
2. Add the wild-card subdomain to your Domain Name Server (DNS) records. Within cPanel, for example, you can just add it as a new subdomain wherever you see the 'Add Subdomain' options listed. Most Web hosts come with a similar management system in which these settings are easy to find, provided that your hosting package came with subdomains.

3. Download the wp-config.php file from the main directory of your WordPress website using an FTP client. Open the file in a code editor or Notepad and find this line of code:define('WP_ALLOW_MULTISITE', false);Change 'false' to 'true' to turn on network settings for your WordPress installation. Re-upload the file to your server and overwrite the original file.
4. Log in to the WordPress dashboard from your website's wp-admin directory. Navigate to 'Tools' and click on 'Network.' Select 'Sub-domains' for your site addresses. Give your network a name and fill in the 'Admin E-Mail Address' field with your email. Click the 'Install' button.
5. Create a new blogs.dir directory uner your wp-content directory in WordPress using an FTP client. Right-click on the directory and check all user permissions so the permissions value rises to 755.
6. Go back to your WordPress dashboard and copy the code that the network installer gave you. Paste it in to your wp-config.php file above the comment that says 'That's all, stop editing!' Save the file and re-upload to your server.
7. Log out of WordPress and log back in. You can now create new blogs for your network while in the 'Network Admin' area. You can get there by clicking 'Network Admin' on the top bar of the dashboard. Click 'Sites' and then 'Add New' to start. Your original blog is also still intact.

Comments

0 Responses to "How to Create Subdomain Wild Cards in WordPress"

Post a Comment

Popular Posts

About