Forum Moderators: phranque

Message Too Old, No Replies

url help

         

AACorral

12:54 pm on Sep 27, 2007 (gmt 0)

10+ Year Member



I have a classified site with different state and cities. I am trying to change http://www.example.com/state/city to make it change to http://state.example.com/city. I also very new to all this. I run a vpn server with cpanel and hosting my my own site. I would like to know in plan english what is the first thing i have to do? Do i have to make a subdomain for every state first on cpanel or i just need to change the .htaccess file? This is what i have now

# City/Region
RewriteRule ^([-0-9]+)
/index.php?view=main&cityid=$1 [QSA]
RewriteRule ^([-0-9]+)
/index.php?view=main&cityid=$1 [QSA]

[edited by: jdMorgan at 3:06 pm (utc) on Sep. 29, 2007]
[edit reason] example.com [/edit]