Login Register






Thread Rating:
  • 0 Vote(s) - 0 Average


Tutorial [MyBB] Remove index.php from URL! filter_list
Author
Message
[MyBB] Remove index.php from URL! #1
*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.

Reply

RE: [MyBB] Remove index.php from URL! #2
Nginx > Apache, any day. Biggrin

Spoiler:
Preferences aside, I believe it is also possible with Nginx, too.
[Image: fSEZXPs.png]

[+] 2 users Like Dismas's post
Reply

RE: [MyBB] Remove index.php from URL! #3
Nice little snippet, helps with SEO a bit, yeah?
Music Producer / Web Developer / Sysadmin
Contact me for any help! Smile

Reply







Users browsing this thread: 1 Guest(s)