Solved

Wilcard Subdomains Htaccess - Wordpress

Posted on 2011-03-03
2
495 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
This video teaches users how to migrate an existing Wordpress website to a new domain.

816 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

8 Experts available now in Live!

Get 1:1 Help Now