htaccess programming

Discussion in 'PHP' started by pingroy, Sep 2, 2009.

  1. pingroy

    pingroy New Member

    Joined:
    Sep 2, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    hi Guys
    I have an e-mall site where there are multiple stores in the system
    currently for each store, the URL is as below :-

    Sample

    domainname(dot)com/store/?s=13
    domainname(dot)com/store/?s=14

    The variables 13 and 14 represents different stores.
    I would like to make the url as so

    domainname(dot)com/storename/

    where storename is taken from the Database.

    Example if variable ?s=13 represents storename shoes
    so the url will be
    domainname(dot)com/shoes/
    which shows the content on domainname(dot)com/store/?s=13

    if variable ?s=14 represents storename pants
    so the url will be
    domainname(dot)com/pants/
    which shows the content on domainname(dot)com/store/?s=14

    Help is greatly appreciated or at least guidance to the correct direction on pursuing this problem.

    Cheers
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    First your program should be such that it can fetch based on storename and not id then the .htaccess would work
     

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