Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

query string to subdomain

Discussion in 'General Discussion' started by kent88, Feb 13, 2008.

  1. kent88

    kent88 Registered

    Joined:
    Jan 30, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    51
    Hi,
    I am very new to htaccess so I need just a little help to get me started. I think I would also need dynamic subdomains configured for this.

    I would like a visitor to my site to see a link like this to change to a new city:
    http://newyork.mydomain.com


    the real link: http://class.mydomain.com/index.php?region=245

    With the query string to my php/mysql script would be hidden. This is what the script would get.


    There are several hundred region numbers each corresponding to a specific city and I don't actually want to create a subdomain for each. I am looking to do this to make the urls friendly and improve SEO. The site will be similar to kijiji or craigslist.

    Any help would be appreciated.
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,216
    Likes Received:
    10
    Trophy Points:
    313
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice