Dynamic directory structures

From: Erik Andersson (erik_at_wcttour.com)
Date: 12/26/03


Date: Fri, 26 Dec 2003 11:38:11 +1000

Hi!

I need to translate the path

/category_name/sub_category_name/

to

/category.php?sub_category_id=2

without redirecting the user.

There seem to be many ways of doing it, but with my current web hosting
provider (E.N.E IT - www.eneit.com) there are some constraints. For example
I cannot modify the httpd.conf.
However, I've got the functionality provided by CPanel (e.g. AddHandler's)
and I can create .htaccess files.

I've read a little about the RedirectRule command in Apache, but it does not
seem to work due to that I'm on a shared hosting server.

I've also realised that I could do
/category.php/category_name/sub_category_name/, but haven't found a way to
remove the .php in that instance.

I'm basically looking for the most basic solution...

All the best,

Erik Andersson
http://www.wcttour.com/
- Everything from the World Pro Surfing Championships, WCT.



Relevant Pages


Loading