Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

index page redirect

Aloittaja johnsonbobby, tammikuu 25, 2008, 03:12:29 AP

« edellinen - seuraava »

johnsonbobby

hello , i was wondering if someone could tell me how to have my Index page redirect to the members list .
im looking to do away with the forums boards and base everything around the memberslist and profile pages .

thanks .

vikk

<script type="text/javascript">
var redirect="URL OF THE MEMBER LIST";
window.location.href=redirect;
</script>


Should work. Put it in the index.template.php, I suppose.

jamesk

I'm not sure if that'll work...  Isn't the index.template.php file loaded every time (resulting in an endless loop)?

bobbyjohnson-online:

When you say want the "index page" to redirect, do you mean your website homepage (ie www.YOURSITE.com)?  If you want to have that redirect automatically, you can just put this as your index.php :


<?php
header
('Location: http://www.YOURWEBSITE.COM/forum/index.php?action=mlist');
?>



(or whatever your path is the forum)...


Advertisement: