How to use TE on multiniche site?
Moderator: Rock
How to use TE on multiniche site?
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.
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?
There are two methods you can use for niche trading.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.
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?
Sorry, is not as easy as it seems.WillWank wrote:1) Setup a TE page for each nichepage you got in "Options --> Index Pages --> Manage Pages"
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?
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?adaliska wrote:Sorry, is not as easy as it seems.WillWank wrote:1) Setup a TE page for each nichepage you got in "Options --> Index Pages --> Manage Pages"
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?
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 solutionsWillWank 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?

-
- Posts: 10
- Joined: Tue Sep 15, 2009 5:10 pm
Re: How to use TE on multiniche site?
Hi all!
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
I try this one, but serfers sended from my traders got error like: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
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
-
- Posts: 10
- Joined: Tue Sep 15, 2009 5:10 pm
Re: How to use TE on multiniche site?
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!
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?
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.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!
Re: How to use TE on multiniche site?
can you add screenshots of this redirect?
Re: How to use TE on multiniche site?
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.