Advertisement

10.14.2008 at 03:10AM PDT, ID: 23812203 | Points: 500
[x]
Attachment Details

PHP HTACCESS MOD REWRITE SUBOMAINS

Asked by Delacourt in PHP and Databases, PHP Scripting Language, Apache Web Server

Hi Experts

I would like to know if it is possible to use htaccess mod-rewrite with php  in order to do the following

make a domain that looks like this:
1. http://www.domain.com/cat.php?category=3

into one that looks like this:
2. http://category-name.domain.com/

so in essence I would like to link to and advertise domain 2 which would then convert to domain 1, get the variable it would need to get the rest of the information for the category page?

a. is this possible?
b. what would i need to enable / install if it is possible?
c. how difficult / easy would this be to implement?
d. should i ask another question for the code to do this? and can i pm you to answer the question?Start Free Trial
[+][-]10.14.2008 at 03:25AM PDT, ID: 22710000

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628