Page 1 of 1

2 site one host ... and one problem

Posted: Fri Mar 04, 2005 1:09 pm
by onlinetime
Hello all.
I have 2 sites: 1.com and 2.com.

This site are hosting to the same directory. 1.com/test.php=2.com/test.php

I have more then 5000 th pages (.php).
I want a script: if i acces 1.com/a_file.php to redirect me to 2.com/a_file.php ( 1.com/other.php to 2.com/other.php ... etc etc)

a_file.php it's one of the 5000's pages ( i want to work for all pages).

Who help me?

10x to all.

Posted: Fri Mar 04, 2005 1:17 pm
by feyd
mod_rewrite.

But ...

Posted: Fri Mar 04, 2005 3:33 pm
by onlinetime
10x, but i don't have acces to apache.. I have acces to the directory of the site /site etc. I want a mini script to do this... So...
:roll:

Posted: Fri Mar 04, 2005 3:39 pm
by feyd
if your server is apache, and you mod_rewrite is loaded, you can do it through .htaccess

Yu..

Posted: Sat Mar 05, 2005 4:56 am
by onlinetime
But i'm new of php, and i don't know to do this file. Can you create for me, and i just to put on my sevrer? Please..