2010-01-31, 03:41 PM
Hi,
this is a very simple tutorial.
Assuming that you have installed MyBB in a subdirectory...
... and you want to display the portal of MyBB in your domain root:
Just create a .htaccess file and put it in your domain root...
... with the following content:
You don't need to put any other file of MyBB in your domain root. The .htacces is everything you need!
Whenever someone request example.net/ the content of example.net/forum/portal.php will be shown! This is not a simple redirect because there is still example.net/ in the browser address bar!
PS: Of course you don't need to create rewrite to portal.php - you can also do it with index.php or whatever you want.
Hint: This works with Apache web server only!
this is a very simple tutorial.
Assuming that you have installed MyBB in a subdirectory...
http://example.net/forum/
... and you want to display the portal of MyBB in your domain root:
http://example.net/
Just create a .htaccess file and put it in your domain root...
http://example.net/.htaccess
... with the following content:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ forum/portal.php [L,QSA]
</IfModule>
You don't need to put any other file of MyBB in your domain root. The .htacces is everything you need!
Whenever someone request example.net/ the content of example.net/forum/portal.php will be shown! This is not a simple redirect because there is still example.net/ in the browser address bar!
PS: Of course you don't need to create rewrite to portal.php - you can also do it with index.php or whatever you want.
Hint: This works with Apache web server only!