MyBB Central

Full Version: HTACCESS
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3

Labrocca hope you are fine and doing good. can you please help me with .htaccess file?
I would say post the question up. You may find others can help also.
Yes please just post the question.
I need help with redirection please. My forum URL is

What I want to do is when someone goes forum/index.php it should be redirected to forum/

BTW I tried this but no luck

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1
You can do this in your control panel, eg CPanel.

And what's the difference between /forum/ and /forum/index.php anyways??
well difference is from SEO point of view. Last time on my old domain my index.php had a page rank and forum/ had nothing.
Because /forum/ isn't a page. When you view /forum/ you view the index, even though it doesn't say index. It loads the PHP from index.php when you just view /forum/, does it not??
Matt you are right, I don't have any problem in what you've said above. But I guess you need to read about SEO.
I just make sure most instances of index.php are just /.

It's an easier more SEO friendly method. You can change the header template which I believe is where the only home link is anyways.

Also in global change this line:

$navbits[0]['url'] = $mybb->settings['bburl']."/index.php";

To this:

$navbits[0]['url'] = $mybb->settings['bburl']."/";

That should do it. Smile
Pages: 1 2 3