Dear all,
I've just setup B2evo, I created a user "sharevt". I know public can access sharevt's blog via:
http://www.mydomain.com/index.php/sharevt
or
http://www.mydomain.com/index.php?blogId=XXX
If I want the path to be:
http://www.mydomain.com/sharevt
Is it a must to create a folder under root folder of b2evo ?
I don't want to create a folder because my site will have many users (each user has its own blog), it will be hard to maintain if there are 100 users (100 folders).
Thanks
Vince
There seem to be a couple of options.
1) The easiest, would be to make a stub file for each user. (Simply copy the index.php file, renamed to the user's name, would probably work. Just make sure that it calls the users blog number.)
Your example would be: http://www.mydomain.com/sharevt.php
This would mean that each user has their own stub file. Simple.
2) If you don't like the idea of lots of stub files, you probably could use .htaccess (assuming your on a 'nix box) to either redirect or mod_rewrite a nice url to an uglier url. This would mean that people could type http://www.mydomain.com/sharevt into their browsers and then they'd automatically be redirected to http://www.mydomain.com/index.php/sharevt
[url=http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html]Apache Mod_Rewrite URL Rewriting Engine Manual[/url]
[url=http://httpd.apache.org/docs/2.0/mod/mod_alias.html]Apache mod_alias Module Manual[/url]
Hope this helps. :D