Page 1 of 1
How to use TE on multiniche site?
Posted: Fri Oct 23, 2009 10:39 am
by adaliska
I have a traditional multiniche website with main page "/" (generated by mainpage.php and mod_rewrite) and niche pages, e.g. "/anal/", "/teens/", "/lesbians/" etc. All niche pages also generating by one php script nichepage.php and mod_rewrite settings.
What string I must insert in mainpage.php and nichepage.php to correctly counting general and niche traffic?
How the niche traffic comes to main page will be redirecting to correct niche page, if it comes from trader belongs to specific group in TE settings? For example, traffic from "bla-bla.com" must be redirected to "mydomain.com/bla-bla/" page because trader "bla-bla.com" belongs to group "bla-bla".
Sorry, I can't find help to this issue in the documentation.
Re: How to use TE on multiniche site?
Posted: Fri Oct 23, 2009 1:37 pm
by WillWank
adaliska wrote:I have a traditional multiniche website with main page "/" (generated by mainpage.php and mod_rewrite) and niche pages, e.g. "/anal/", "/teens/", "/lesbians/" etc. All niche pages also generating by one php script nichepage.php and mod_rewrite settings.
What string I must insert in mainpage.php and nichepage.php to correctly counting general and niche traffic?
How the niche traffic comes to main page will be redirecting to correct niche page, if it comes from trader belongs to specific group in TE settings? For example, traffic from "bla-bla.com" must be redirected to "mydomain.com/bla-bla/" page because trader "bla-bla.com" belongs to group "bla-bla".
Sorry, I can't find help to this issue in the documentation.
There are two methods you can use for niche trading.
1) Setup a TE page for each nichepage you got in "Options --> Index Pages --> Manage Pages"
Add <? include "/path/to/your/domains/your-domain.com/public_html/te/te_redirect.php"; ?> to your mainpage.php
In "Options Index Pages" set each trade to display correct nichepage
2) Setup a TE page for each nichepage you got in "Options --> Index Pages --> Manage Pages"
Use <? $qs=getenv("QUERY_STRING"); virtual("/cgi-bin/te/in.cgi?p=default&$qs"); ?> in each of your pages but remember to change p= to correct page name (niche page)
In your signup/webmaster page have your trades send directly to nichepages.
Hope this helps

Re: How to use TE on multiniche site?
Posted: Fri Oct 23, 2009 2:32 pm
by adaliska
WillWank wrote:1) Setup a TE page for each nichepage you got in "Options --> Index Pages --> Manage Pages"
Sorry, is not as easy as it seems.
In this settings must be set the
filename for each page. I have no filenames, because
I have no files - all niche pages generated on-fly by one php script throughout mod_rewrite.
Re: How to use TE on multiniche site?
Posted: Fri Oct 23, 2009 2:54 pm
by WillWank
adaliska wrote:WillWank wrote:1) Setup a TE page for each nichepage you got in "Options --> Index Pages --> Manage Pages"
Sorry, is not as easy as it seems.
In this settings must be set the
filename for each page. I have no filenames, because
I have no files - all niche pages generated on-fly by one php script throughout mod_rewrite.
Sounds like a custom job. TE is set up to work with pages, whenever you add mod_rewrite wizardry things get complicated and it is difficult to anticipate how each person does mod_rewrite redirections and content creation. Maybe Jim can help on doing a custom project for you?
Re: How to use TE on multiniche site?
Posted: Fri Oct 23, 2009 3:18 pm
by adaliska
WillWank wrote:Sounds like a custom job. TE is set up to work with pages, whenever you add mod_rewrite wizardry things get complicated and it is difficult to anticipate how each person does mod_rewrite redirections and content creation. Maybe Jim can help on doing a custom project for you?
Hmm... OK, thank you, do not bother, I possess programming and can setup redirects by custom php code. I was just seeking for ready-made standard solutions

Re: How to use TE on multiniche site?
Posted: Mon Nov 23, 2009 9:29 pm
by maksimovich
Hi all!
WillWank wrote:
There are two methods you can use for niche trading.
1) Setup a TE page for each nichepage you got in "Options --> Index Pages --> Manage Pages"
Add <? include "/path/to/your/domains/your-domain.com/public_html/te/te_redirect.php"; ?> to your mainpage.php
In "Options Index Pages" set each trade to display correct nichepage
I try this one, but serfers sended from my traders got error like:
Fatal error: Cannot redeclare te_random() (previously declared in /var/www/mysite/te/te_redirect.php:6) in /var/www/mysite/te/te_redirect.php on line 18
What is wrong with my settings?
Thank you
Re: How to use TE on multiniche site?
Posted: Tue Nov 24, 2009 10:05 am
by maksimovich
Please clarify.
I should use these strings (te_redirect.php or in.cgi) only for main (index) page?
To the niche pages these string do not included, right?
Thank you!
Re: How to use TE on multiniche site?
Posted: Wed Nov 25, 2009 8:29 am
by texpert
maksimovich wrote:Please clarify.
I should use these strings (te_redirect.php or in.cgi) only for main (index) page?
To the niche pages these string do not included, right?
Thank you!
If you want to use multiple index pages feature, then you can use te_redirect.php, but in that case u only set te_redirect.php on e.g. index.php and do not include any tracking code to your other pages that you are displaying, rotating.
Re: How to use TE on multiniche site?
Posted: Thu Mar 24, 2011 12:19 pm
by topmas
can you add screenshots of this redirect?
Re: How to use TE on multiniche site?
Posted: Thu Mar 24, 2011 9:13 pm
by texpert
Hi Topmas, i'm not sure what would you like to see on the screenshot. Basically there are several steps you have to complete to get te_redirect.php to "redirect" or better said display different pages. If u need some help setting it up, you can hit me up on ICQ and we can talk live.