Forums / Cotonti / Support / url mod_rewrite page_add bug

question about page_add bug solving with mod_rewrite enabled

donP
#23405 2010-03-04 18:40
I've created a CNAME ;) Thank you Koradhil (ar you back to Cotonti? I'd hope this).
Now every word I write in url as a third level domain (e.g. http://sport.sangelo.net) gives me the home page of my website. I think this is the right way, no?
Now, considering I'm not a good script coder, could anyone help me to rewrite Trustmaster function.custom.php and .htaccess rules to have the first level category of page strucrture as the name of the third level domain and not the first subfolder like in the actual solution? Like this:

Instead of (actual method):

http://www.mysite.net/list.php?c=cat1 ==> http://www.mysite.net/cat1/
http://www.mysite.net/list.php?c=subcat1 ==> http://www.mysite.net/cat1/subcat1/
http://www.mysite.net/list.php?c=subsubcat1 ==> http://www.mysite.net/cat1/subcat1/subsubcat1/
...

like this:

http://www.mysite.net/list.php?c=cat1 ==> http://cat1.mysite.net
http://www.mysite.net/list.php?c=subcat1 ==> http://cat1.mysite.net/subcat1/
http://www.mysite.net/list.php?c=subsubcat1 ==> http://cat1.mysite.net/subcat1/subsubcat1/
...


Is it possible?
in [color=#729FCF][b]BLUES[/b][/color] I trust