Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Wilcard Subdomains Htaccess - Wordpress

Posted on 2011-03-03
2
Medium Priority
?
502 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 31

Accepted Solution

by:
gwkg earned 2000 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
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 integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
Suggested Courses
Course of the Month8 days, 11 hours left to enroll

597 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