Solved

Wilcard Subdomains Htaccess - Wordpress

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

WordPress is constantly evolving, and with each evolution appears to get better and better.  One of the big drawbacks prior to version 3 was that there was no way to be able to set up a custom menu from the backend. The Old Way Adding menus is…
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 reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
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…

733 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