Solved

Wilcard Subdomains Htaccess - Wordpress

Posted on 2011-03-03
2
488 Views
Last Modified: 2012-05-11
Hi Experts

I have the following enabled

Wilcard subdomains enabled at host, ie subdomain.domain.com loads domain.com
I have wordpress installed and would like to be able to use certain subdomains, eg contact.domain.com to get the content from domain.com/contact

I am trying to write the htaccess and cannot get it to work. Please could somebody point me in the right direction - this is not a wordpress MU/Multisite install - just one blog

Looking forward to your replies

Brad
0
Comment
Question by:Delacourt
2 Comments
 
LVL 31

Accepted Solution

by:
gwkg earned 500 total points
ID: 35029049
The simplest way would be @ your domain's registrar.

GoDaddy, for instance, allows you 90 subdomain redirects http://community.godaddy.com/help/article/4040

.htaccess is a quite bit trickier http://stackoverflow.com/questions/586129/create-subdomains-on-the-fly-with-htaccess-php/586160#586160

0
 
LVL 1

Author Comment

by:Delacourt
ID: 35279953
Hi There, Thanks for your answer and your time

from what I have seen with Wordpress, is the internal index.php handles the redirects

What we have done is to install a WP Network - subdomains can use wildcard *.domain.com and we just have to make a new blog and install the same template for each one - tedious but working so far

Thanks for your help and time tho :)
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Join & Write a Comment

A few customers have recently asked my thoughts on Password Managers.  As Security is a big part of our industry I was initially very hesitant and sceptical about giving a program all of my secret passwords.  But as I was getting asked about them mo…
In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now