MyBB Community Forums

Full Version: Redirect portal.php to index.php with .htaccess
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
Can you tell me how can I redirect portal.php to index.php with .htaccess* file?

Tell the apache modules that i need to enable.

Thank you,

Killua.
Make the Portal.php the homepage?

add this code
DirectoryIndex portal.php

in --> .htaccess

https://community.mybb.com/thread-114980-page-2.html
it'd be better to add index.php & index.html to above suggested rule
DirectoryIndex portal.php index.php index.html
(07-01-2017, 10:59 AM).m. Wrote: [ -> ]it'd be better to add index.php & index.html to above suggested rule
DirectoryIndex portal.php index.php index.html

Sorry man, you misunderstood what i would is:

when user goes to http://example.com/portal.php he will be redirected to http://example.com/index.php 

Thanks!