How to use TE on multiniche site?

Our support will answer all your general questions here.

Moderator: Rock

Post Reply
adaliska
Posts: 17
Joined: Wed Jul 01, 2009 8:27 pm

How to use TE on multiniche site?

Post 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.
WillWank
Posts: 29
Joined: Fri Apr 24, 2009 3:16 pm
Contact:

Re: How to use TE on multiniche site?

Post 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 :)
Image
adaliska
Posts: 17
Joined: Wed Jul 01, 2009 8:27 pm

Re: How to use TE on multiniche site?

Post 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.
WillWank
Posts: 29
Joined: Fri Apr 24, 2009 3:16 pm
Contact:

Re: How to use TE on multiniche site?

Post 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?
Image
adaliska
Posts: 17
Joined: Wed Jul 01, 2009 8:27 pm

Re: How to use TE on multiniche site?

Post 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 ;)
maksimovich
Posts: 10
Joined: Tue Sep 15, 2009 5:10 pm

Re: How to use TE on multiniche site?

Post 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
maksimovich
Posts: 10
Joined: Tue Sep 15, 2009 5:10 pm

Re: How to use TE on multiniche site?

Post 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!
texpert
Site Admin
Posts: 719
Joined: Sat Mar 14, 2009 5:54 pm

Re: How to use TE on multiniche site?

Post 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.
topmas
Posts: 3
Joined: Thu Jun 03, 2010 7:00 am

Re: How to use TE on multiniche site?

Post by topmas »

can you add screenshots of this redirect?
texpert
Site Admin
Posts: 719
Joined: Sat Mar 14, 2009 5:54 pm

Re: How to use TE on multiniche site?

Post 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.
Post Reply