MyBB Community Forums

Full Version: Redirect home page to index.php?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have attempted to do this using the .htaccess but to no avail.

I would like to do this, as currently Labrocca's Tabbed Menu plugin only works on the /index.php page.

Any support would be awesome Big Grin

Forum URL: http://iosinterest.com

Thanks!
strange, i always thought it was default behavior to do this... my forum always did anyways...maybe it's just the way I have redirection set up or because my forum is at /forum

try
RewriteEngine on

#RewriteOptions inherit

RewriteCond %{HTTP_HOST} ^iosinterest.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.iosinterest.com$
RewriteRule ^/?$ "http\:\/\/www\.iosinterest\.com\/index\.php" [R=301,L]
I use this code & it works perfectly for me .htaccess

RewriteEngine On
RewriteCond %{HTTP_HOST} ^iosinterest.com$
RewriteRule ^$ http://iosinterest.com/index [L,R=301]

Just copy/paste the code in your .htaccess
Hope it will help ya
Neither worked :/ Is there any other way?
seems to be working fine for me - I click your link I see the index.
Yeap i can see your index page too: http://prntscr.com/3c9361
Clear your browser's cache and try again. Or try from a different browser you haven't visited your site with before.
Thanks for the help Smile And to deactivate this feature I just delete that line of code right?

I found the issue, it was silly, but the tabbed.css file automatically only applied to the index page, so I set it to global and it works fine

Thanks everyone Big Grin
To deactivate it, set the .htaccess back to what it was previously. If you're not sure what it was, get the .htaccess from a backup or contact your host and they should be able to restore it
1. PHP
header("Location: http://iosinterest.com/index.php")

2. HTML
<meta http-equiv="Location" content="http://iosinterest.com/index.php">

3. JS
<script> location.replace("http://iosinterest.com/index.php"); </script>