I use Mihalism Multi Forum Host. It creates forums now like: Mydomain.com/forum/<user_name> I want to create like: <user_name>.mydomain/forum How to edit? Now it`s: RewriteEngine On RewriteBase / RewriteRule ^forums$|^forums/$ index.php [R=301,L] RewriteRule ^forums/([-_a-zA-Z0-9]{3,30})$ forums/$1/ [R=301,L] RewriteRule ^forums/([-_a-zA-Z0-9]{3,30})/(.*)$ phpBB3/$2?access_name=$1 [QSA,L] Code (markup): access_name it`s username here Thanks for future help!!! Regards, Fluor
You'll probably need to add a new wildcard DNS record. Then you'll need to setup a server alias - If you're on apache add *.domain.com as the ServerAlias the HTaccess: RewriteCond %{HTTP_HOST} !www.yourdomain.com$ [NC] RewriteCond %{HTTP_HOST} ^(www.)?([a-z0-9-]+).yourdomain.com [NC] RewriteRule (.*) phpBB3/$1?access_name=%2 [NC,QSA]
Right, One more question > can i`ve two different htaccess files on root? I`ve 2 scripts that are combined and both require specific htaccess configuration, or how to bring them togheter? Thx for support! Regards,
I don't think 2 htaccess files are possible. They might conflict each other. Besides its supposed to be just one htaccess for a folder.