Forums / Cotonti / Support / mod_rewrite HELP needed

url rewriting in .htaccess to create SEO subdomains and subfolders

donP
#23635 2010-03-18 21:23
tensh:
This is not what exactly you did. Trustmaster's rewrite rule contains in a bracket the main list directories. Your example doesn't mention any main directories which the server should look for in first place. That's what I meant and that's how I imagine it works. Otherwise there would be no brackets with defined core categories, only the brackets with variable patterns.
Also My rules contain in a bracket the main list directories. I wrote only a general example not to list here my own categories... otherwise, a general form like that one could be usefull for a continually changing page-structure (a e-commerce website, for example).

tensh:
I suggested that you might toy with definedmaincat.sangelo.net rewrite rules, like:
^(articles|downloads|news|docs).sangelo.net/([A-Za-z0-9\-]+) [blablabla]
That IS my rewrite rule:
RewriteCond %{HTTP_HOST} ^(articles|downloads|news|docs)\.sangelo\.net/([a-z\-]+)$ [NC]
RewriteRule (.*) list.php?c=%2 [QSA,NC,NE,L]
but it doesn't work :/
in [color=#729FCF][b]BLUES[/b][/color] I trust