Forum Moderators: phranque

Message Too Old, No Replies

use subdirectory to create a different store

mod_rewrite

         

stephenjen

3:57 am on Jul 16, 2008 (gmt 0)

10+ Year Member



I'm using X-Cart, an ecommerce cart solution. Our main marketplace is up and is accessible through the domain www.example.com. We want to offer other providers their own mini store accessible using www.example.com/mini_store1.

What is the best way to do this?

I'm thinking of using mod_rewrite so www.example.com/mini_store1/home.php, for example, translates to www.example.com/home.php?store=mini_store1.

So the first subdirector is ignored or translated into a parameter of the URL.

How would I go about doing this?