You are here:  » Seo URL at Nginx server


Seo URL at Nginx server

Submitted by BohemianRunner on Tue, 2016-10-18 13:24 in

Hi,

i have switch server to nging. For items i use this rewrite directive:

location ~ /items/(.*)$ {
rewrite ^/items/(.*).html$ /products.php?q=$1&rewrite=1&$query_string last;
}

And working good. For categories i use this

location /kategorie/ {
rewrite ^/kategorie/(.*)/(.*).html$ /search.php?q=category:$1:&page=$2&rewrite=1&$query_string last;
}

but i still give bas 404 reply. What is wrong? Thanks :)

Submitted by support on Tue, 2016-10-18 13:55

Hello,

Do you have the page 1 rewrite for category in place, which I think would be:

location /kategorie/ {
rewrite ^/kategorie/(.*)/$ /categories.php?path=$1 last;
}

That should be all it is...

Cheers,
David.
--
PriceTapestry.com