FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


.htacess in phpBB ?





Summer
Thank to Noobie4life , I successully redirect my user to main page .
But how about forums ? I mean when user go to www.example.net/forums , they wont be redirected to index.php automatically . How to automatically direct them to forums/index.php ?
Peter
I don't know php very well, but do you mean something like this?

Code:
if ( !isset($redirect))
   {
     $redirect = "index.php";
   }


(source: http://www.zend.com/codex.php?id=393&single=1)

Or maybe you can find your answer at this website? http://www.zend.com/

Otherwise, use a search engine. Wink
misterdimiz
I think than to complete the code you have toadd this:

Code:
<?

$redirect="http://www.yoursite.com";


header("Location: $redirect");


?>
n0obie4life
In the "forums" folder. Put a .htaccess file.

Code:
DirectoryIndex index.php
kochanek
here are some turolial (on the other server it's work):
Code:
o Method 1:
#   create/modify file .htaccess in phpBB root directory
#   add/edit this line:
#
#   DirectoryIndex index.html index.htm portal.php index.php
#
#
# o Method 2: {use JavaScript - if you cannot apply the 1st method)
#   create file index.html in phpBB root directory (without #)
#
#   <html>
#   <head>
#   <title>Redirecting...</title>
#   <script language="JavaScript">
#   self.location.href='portal.php';
#   </script>
#   </head>
#   <body>
#   </body>
#   </html>
#
#   if your phpBB was placed in a subdirectory to the
#   webroot, like: http://something.com/forum
#   you could create index.html in the webroot and modify the
#   line 5 to self.location.href='forum/portal.php';
n0obie4life
Rip frm http://smartor.is-root.com
Related topics
Help me with MySQL Account Maintenance and phpBB 2.0.15 :((
Updating phpbb
phpbb 15
dating mod for phpbb
shop mod for phpbb?
phpbb
PHPBB 15 and MOD Installation for a small fee
help add admin in phpbb forum
phpbb problem....
Security of this host? (and phpbb forum)
phpBB [2.0.16] Released
Mettez vos forums phpbb jour.
phpBB 2.0.16 released
PHPBB Update version question
Why PHPbb? '?
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.