Gallery Slug в реврайтах
Posted: Fri Jul 18, 2014 3:46 pm
Я не хочу чтоб Gallery slug фигорировал в урлах, хочу урлы такого вида
http://domain.com/gallery/GALLERY_ID.html
то есть например
http://domain.com/gallery/12313.html
http://domain.com/gallery/424231.html
http://domain.com/gallery/512323.html
как должен выглядеть реврайт в таком случае, у меня nginx, вот такие дефолтные
if ($args) {
rewrite ^/gallery/([^/]+)/index.html$ /scj/cgi/out.php?link=images/$query_string&url=content&slug=$1 last;
}
rewrite ^/gallery/([^/]+)/index.html$ /scj/tube/?slug=$1 last;
rewrite ^/gallery/([^/]+)/$ /scj/tube/?slug=$1 last;
rewrite ^/gallery/([^/]+)/(.*).html$ /scj/tube/?slug=$1&item_id=$2 last;
http://domain.com/gallery/GALLERY_ID.html
то есть например
http://domain.com/gallery/12313.html
http://domain.com/gallery/424231.html
http://domain.com/gallery/512323.html
как должен выглядеть реврайт в таком случае, у меня nginx, вот такие дефолтные
if ($args) {
rewrite ^/gallery/([^/]+)/index.html$ /scj/cgi/out.php?link=images/$query_string&url=content&slug=$1 last;
}
rewrite ^/gallery/([^/]+)/index.html$ /scj/tube/?slug=$1 last;
rewrite ^/gallery/([^/]+)/$ /scj/tube/?slug=$1 last;
rewrite ^/gallery/([^/]+)/(.*).html$ /scj/tube/?slug=$1&item_id=$2 last;