Build 201403251547
Сделал следующее:
1. Код с сабтемлейте:
Code: Select all
<?php
$my_var = explode('x', '<!--THUMB_LINK-->');
?>Code: Select all
href="/category/<!--CATEGORY_NAME-->/?a=<?=$my_var[0]?>&b=<?=$my_var[1]?>&c=<?=$my_var[2]?>"Code: Select all
href="/tube/<!--GALLERY_SLUG-->.html?a=<?=$my_var[0]?>&b=<?=$my_var[1]?>&c=<?=$my_var[2]?>"Code: Select all
if (isset($_GET['a'])) {
$_GET['link'] = 'images/' . $_GET['a'] . 'x' . $_GET['b'] . 'x' . $_GET['c'];
}/scj/cgi/common.php
/scj/tube/common.php
в корне - линк на /scj/cgi/common.php
3. Rewrite не менял, они такие:
Code: Select all
RewriteRule ^tube/([^/]+)\.html$ /scj/cgi/out.php?link=images/%{QUERY_STRING}&url=content&slug=$1 [L]Code: Select all
RewriteRule ^category/([^/]+)/?$ /scj/cgi/out.php?link=images/%{QUERY_STRING}&url=content&p=100&skip_to_cookie=true&skip_sell=true&group_name=$1&order=ctr [L]Code: Select all
http://domain.com/category/ass/?a=42&b=6&c=110020
GET /category/ass/?a=42&b=6&c=110020 HTTP/1.1
Host: domain.com.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:28.0) Gecko/20100101 Firefox/28.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Referer: http://domain.com/
Cookie: from=noref; lfrom=noref; idcheck=1396964180; vs=xxx.org%7Cnoref%7C; index_page=1; rot_in=1; __atuvc=4%7C15; last_dest=have-my-ass-and-lick-my-cunt-you; last_url=content; juicy-js-cookie=juicy-js-cookie; to=%7Curl%7Cxxx.org; splash-=1
Connection: keep-alive
HTTP/1.1 200 OK
Server: nginx/1.4.3
Date: Tue, 08 Apr 2014 14:16:01 GMT
Content-Type: text/html
Content-Length: 16389
Connection: keep-alive
X-Powered-By: PHP/5.2.17
Current-Click: 3
X-Current-Trader: noref
Set-Cookie: last_dest=unknown; expires=Wed, 09-Apr-2014 14:16:00 GMT; path=/
Set-Cookie: last_url=content; expires=Wed, 09-Apr-2014 14:16:00 GMT; path=/
Set-Cookie: rot_in=1; expires=Wed, 09-Apr-2014 14:16:01 GMT; path=/
Vary: Accept-Encoding
Content-Encoding: gzip






