MyBB Community Forums

Full Version: Redirection
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
My site's main URL is http://timelessac.net78.net/ but the forum URL is http://timelessac.net78.net/forum/index.php so can I make it redirect?
ya.

Just make a file called index.php and put in on the timelessac.net78.net so it means on root and here is the code need to have in file

<?php

echo "<meta http-equiv=\"REFRESH\" content=\"0;URL=forum/index.php\">";

?>

I am sure this will work, though haven't tested yet Wink LOL..

I am using this in many of my sites Smile

So it would be ok with you Smile

FAISAL Smile
[attachment=9588]

Upload this file to your site's main directory. it will redirect your index page to your forum...
Well Thanks Arno. But I think instead of using his full URL<

It's better to use forum/index.php

so if in future he changes the host or URL he don't need to modify the file Smile

Though same thing in php format and using forum/index.php <for future prefrences> you can use you want Wink <LIKE>

If your using this, so do the same upload index.php to your root Smile

FAISAL Smile
Here's another alternative: Big Grin

Make an index.php file with the following:
<?php
header('Location: http://timelessac.net78.net/forum/index.php');
?>
it is up to him. He can change the domain name whatever he wants Smile
(2008-06-29, 01:20 AM)arno Wrote: [ -> ]it is up to him. He can change the domain name whatever he wants Smile

Exactly but actually if he don't want to get into this code. AND AS far as I understood he will not want,

Because if yes, He will never ask this question here.. THough it's up to him Wink

<nice to see you, it's first time saw you Smile>
FAISAL Smile
(2008-06-29, 01:20 AM)MrDoom Wrote: [ -> ]Here's another alternative: Big Grin

Make an index.php file with the following:
<?php
header('Location: http://timelessac.net78.net/forum/index.php');
?>

Mr. DOOM Good I learnt a new thing Smile

very lovely. Is it a funciton header();? LOL seems to be Smile
Thanks Smile

FAISAL
also there is an other alternative. you can add below codes to .htaccess file in main directory. if doesnt exist you can create a empty file named .htaccess:

DirectoryIndex forum/index.php

Big GrinBig GrinBig Grin is there another solution?
(2008-06-29, 01:25 AM)arno Wrote: [ -> ]also there is an other alternative. you can add below codes to .htaccess file in main directory. if doesnt exist you can create a empty file named .htaccess:

DirectoryIndex forum/index.php

Big GrinBig GrinBig Grin is there another solution?

Big GrinBig GrinBig Grin

BUT sadly some hosts don't allow .htaccess Sad(

And you know mostly free host dont Sad

Smile FAISAL
Yeah I know. The server must be Unix... Beside Unix servers are more common than other systems.
I have found a new one. Big GrinBig GrinBig Grin

You can use iframe but I dont recommend that way. So it isnt necessary to explain...
Pages: 1 2