Remove index.php from URL

by Aoki - 15-01-2015, 06:10 AM
oldfag
Administrators
Posts:
6,294
Joined:
Jan 2015
Likes:
1,790
Credits:
5,170
Reputation:
274
3 Years of Service
#1
OP
Posted: 15-01-2015, 06:10 AM
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:
<pre class="_prettyXprint">
RewriteCond %{IS_SUBREQ} false
RewriteRule ^index.php$ http://www.example.org [R=301,L]
</pre>

Of course you have to replace http://www.example.org with your own MyBB installation.
Send me a message for help. (Read the help docs first)
Steam Wishlist - Anime Watchlist
The last reply on this thread is older than a month. Please do not unnecessarily bump it.
Register an account or login to reply
Create an account
Create a free account today and start posting right away. It only takes a few seconds.
Login
Log into an existing account.
1 Guest(s)