And let the RewriteRules match [1]u//B/?$ for blog/blog.php and [2]g//B/?$ for grouppublic.php
All should be well with the world then
Alternatively you could redirect everything to some index.php
RewriteRule . /index.php
And let the index.php decide whether the given path is a groupname or a username, and disallow usernames to be the same as groupnames and the other way around.
Something along the lines of
Yes… Now it works, only have one problem though… All my images is now missing due to the u/ or the g/… I have my images like this : …/images/image.gif Is there a way out of this without having to change all the images path!!!
I’d recommend modifying your CSS to make the images all relative to the base url.
That way you’ll save on loading time - as far as the browser is concerned, images/logo.jpg, u/images/logo.jpg and /g/images/logo.jpg will all be different images.
You may want to think about the directory names, before you get stuck to using ‘g’ and ‘u’. Not that ‘g’ and ‘u’ are bad choices - but they were thought up as examples, you may want to change that before making your changes too permanent. ‘Users’ and ‘Groups’ would be more in the ‘Tidy URI’ mindset.