I have a website which is running vb 3.6.2. I Have modified my members profile pages extensivly, and would like to give them their own pages.
I enabled wildcard domains on my server so that *.montrealracing will resolve to montrealracing.com. then, given the fact that you can access a members profile page with their username in the url bar, (www.mysite.com/user.php?username=myusername) I utilised .htaccess to rewrite it into a subdomain. as a result, http://cryptkeeper.montrealracing.com redirects to mr.com/forums/user.php?username=cryptkeeper.
I have 2 questions.
1)There was a noticable impact on my servers speed immidiately after uploading the .htaccess, is there any other method i can use to have the same end result, yet retain the former speed of my site? can I use something directly in apache instead of relying on a file?
2)Since its a (i belive) 302 redirection, the name changes after execution to montrealracing.com/forums/user.php?username=myname, but I would like it to remain httP;//myusername.mr.com which I BELIVE is a 301 permanent redirection? Can anone help me with that?
1) quote from apache site (why, oh why didn't you look there first?! ):
"There are two main reasons to avoid the use of .htaccess files.
The first of these is performance. When AllowOverride is set to allow the use of .htaccess files, Apache will look in every directory for .htaccess files. Thus, permitting .htaccess files causes a performance hit, whether or not you actually even use them! Also, the .htaccess file is loaded every time a document is requested
The second consideration is one of security. You are permitting users to modify server configuration, which may result in changes over which you have no control. Carefully consider whether you want to give your users this privilege. Note also that giving users less privileges than they need will lead to additional technical support requests. Make sure you clearly tell your users what level of privileges you have given them. Specifying exactly what you have set AllowOverride to, and pointing them to the relevant documentation, will save yourself a lot of confusion later."