CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Apache configuration (http://www.codingforums.com/forumdisplay.php?f=69)
-   -   domain addressing issue, please advise (http://www.codingforums.com/showthread.php?t=250187)

nomanic 01-30-2012 02:39 PM

domain addressing issue, please advise
 
hi all

i have a file on my domain index.php
now with mod rewrite i can go to

first method -
domain.com/users/james/
domain.com/users/jenny/
or whoever

or i can do

second method-
james.domain.com/
jenny.domain.com/
or whoever

with first method i can use mod rewrite to rewrite that to
index.php?user=james
index.php?user=jenny

exactly what i want

with second method i can create a subfolder and put in it a redirect to the main index file with the argument user, so a round about way of getting to first answer

what id like to do is make
www.james.com point to domain.com/index.php?user=james
www.jenny.com point to domain.com/index.php?user=jenny

is there anyway i can do that? so the user doesnt notice a thing? like with mod rewrite?

Please advise,
Many thanks

nomanic 01-30-2012 03:02 PM

it seems virtual hosts might be the way forward, can i set them up on any web server, or do i have to ask my provider to do it?

nomanic 01-30-2012 03:17 PM

i can do this with addon domains and mod rewrite!


All times are GMT +1. The time now is 04:56 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.