Page 1 of 1

section based path in php

Posted: Fri Feb 10, 2012 3:32 pm
by ginigangadharan
Dear Geeks,

Here is my problem.
i have a site with categories and subcategories(may be unlimited) items.
eg: mysite.com/section/subsection/verysubsection/music etc

also mysite.com/music/hindi/latest - this path should list the items of of category music- hindi-latest . all these paths are virtual actually. right ?
How can i achive this.? i saw this technic on some classified sites, but didn't get the idea.

I am storing all my data in mysql db(all categories and items).

please help.

thank n regards
Gini

Re: section based path in php

Posted: Fri Feb 10, 2012 5:29 pm
by social_experiment
Seems to me you are refering to url rewriting (or 'clean URLs'); You can search the forum as the topic has been covered a few times or search on search engines for 'Clean URL's', mod_rewrite, URL rewriting
http://httpd.apache.org/docs/2.0/misc/rewriteguide.html

Re: section based path in php

Posted: Fri Feb 10, 2012 6:18 pm
by Celauran
Sounds like you're looking for a front controller. This should help get you started.

Re: section based path in php

Posted: Sat Feb 11, 2012 6:57 am
by ginigangadharan
hi social_experiment and Celauran,

thanks for the quick and effective replies..
now i am trying to apply it on my page.

I got all this from following article. thanks.
http://www.devarticles.com/c/a/Apache/U ... Page-URLs/

thanks again.

-gini