Go4Expert

Go4Expert (http://www.go4expert.com/)
-   PHP (http://www.go4expert.com/forums/php/)
-   -   htaccess programming (http://www.go4expert.com/forums/htaccess-programming-t19276/)

pingroy 3Sep2009 01:26

htaccess programming
 
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

shabbir 3Sep2009 09:49

Re: htaccess programming
 
First your program should be such that it can fetch based on storename and not id then the .htaccess would work


All times are GMT +5.5. The time now is 05:07.