Sinisterly
Tutorial [MyBB] Remove index.php from URL! - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Design (https://sinister.ly/Forum-Design)
+--- Forum: Web Design (https://sinister.ly/Forum-Web-Design)
+--- Thread: Tutorial [MyBB] Remove index.php from URL! (/Thread-Tutorial-MyBB-Remove-index-php-from-URL)



[MyBB] Remove index.php from URL! - Rikka - 11-22-2016

*Not my content*

This is a very simple way to remove the index.php from your URL. Please note that this only works if you are running an Apache web server and mod_rewrite is enabled!
Just add the following lines to your root .htaccess file (directly after RewriteEngine On):

Code:
Code:
RewriteCond %{IS_SUBREQ} false
RewriteRule ^index.php$ http://www.example.org [R=301,L]
Of course you have to replace http://www.example.org wit your own MyBB installation.


RE: [MyBB] Remove index.php from URL! - Dismas - 11-22-2016

Nginx > Apache, any day. Biggrin

Spoiler:
Preferences aside, I believe it is also possible with Nginx, too.



RE: [MyBB] Remove index.php from URL! - LAZARUS - 11-30-2016

Nice little snippet, helps with SEO a bit, yeah?