{"id":2461,"date":"2026-03-27T15:10:46","date_gmt":"2026-03-27T15:10:46","guid":{"rendered":"https:\/\/help.quarticon.com\/pl\/?p=2461"},"modified":"2026-03-27T15:40:26","modified_gmt":"2026-03-27T15:40:26","slug":"jak-ustawic-domeny-w-nginx-i-apache-dla-social-storefront","status":"publish","type":"post","link":"https:\/\/help.quarticon.com\/pl\/jak-ustawic-domeny-w-nginx-i-apache-dla-social-storefront\/","title":{"rendered":"Jak ustawi\u0107 domeny w nginx i Apache dla Social Storefront?"},"content":{"rendered":"<p><span data-sd-animate=\"true\">Quarticon Social Storefront to narz\u0119dzie do integracji promocji produkt\u00f3w z mediami spo\u0142eczno\u015bciowymi. Pozwala firmom tworzy\u0107 wyodr\u0119bnione, responsywne witryny\/ sklepy zoptymalizowane pod ruch przychodz\u0105cy z kana\u0142\u00f3w social medi<\/span>a. Wi\u0119cej na ten temat tutaj: <a href=\"https:\/\/quarticon.com\/pl\/produkty\/influencers-storefront\/\" target=\"_blank\" rel=\"noopener\">Social Storefront<\/a><\/p>\n<p>W <strong>Social Storefront<\/strong> standardowo strony s\u0105 tworzone jako parametry doklejane do g\u0142\u00f3wnego adresu, np: https:\/\/example.com\/influencer\/?i=ana.<\/p>\n<p>Poni\u017cej kr\u00f3tkie, praktyczne przyk\u0142ady konfiguracji dla <strong>nginx<\/strong> i <strong>Apache<\/strong> \u2014 kt\u00f3re przekieruj\u0105 oba warianty\u00a0 na https:\/\/example.com\/influencer\/?i=ana ruch z 2 wariant\u00f3w domen: <strong>ana<\/strong>.example.com oraz example.com\/<strong>ana<\/strong><\/p>\n<h3>Ustawienia nginx<\/h3>\n<p>1) przekierowanie z subdomeny (ana.example.com) do docelowego URL:<\/p>\n<pre>server {\r\nlisten 80;\r\nserver_name ana.example.com;\r\nreturn 301 https:\/\/example.com\/influencer\/?i=ana;\r\n}<\/pre>\n<p>(Je\u017celi u\u017cywasz HTTPS, dodaj analogiczny blok listen 443 z certyfikatem.)<\/p>\n<p>2) przekierowanie z path na g\u0142\u00f3wnej domenie (example.com\/ana \u2192 \/influencer\/?i=ana):<\/p>\n<pre>server {\r\nlisten 80;\r\nserver_name example.com www.example.com;\r\nlocation = \/ana {\r\nreturn 301 https:\/\/example.com\/influencer\/?i=ana;\r\n}<\/pre>\n<p># opcjonalnie: je\u015bli chcesz tak\u017ce przechwyci\u0107 \/ana\/ oraz np. \/ana\/anything<\/p>\n<pre>location ~ ^\/ana(\/.*)?$ {\r\nreturn 301 https:\/\/example.com\/influencer\/?i=ana;\r\n}<\/pre>\n<h3>Ustawienia Apache (mod_rewrite lub VirtualHost)<\/h3>\n<p>1) przekierowanie z subdomeny (wirtualny host):<\/p>\n<pre>&lt;VirtualHost *:80&gt;\r\nServerName ana.example.com\r\nRedirect 301 \/ https:\/\/example.com\/influencer\/?i=ana\r\n&lt;\/VirtualHost&gt;<\/pre>\n<p>(Analogicznie dodaj VirtualHost :443 z certyfikatem dla HTTPS.)<\/p>\n<p>2) przekierowanie z path na g\u0142\u00f3wnej domenie (w pliku konfigu lub .htaccess):<br \/>\na) proste Redirect:<\/p>\n<pre>Redirect 301 \/ana https:\/\/example.com\/influencer\/?i=ana<\/pre>\n<p>b) mod_rewrite (r\u00f3wnie\u017c dla \/ana\/ i pod\u015bcie\u017cek):<\/p>\n<pre>RewriteEngine On\r\nRewriteRule ^ana(\/.*)?$ https:\/\/example.com\/influencer\/?i=ana [R=301,L]<\/pre>\n<h3>Dodatkowe uwagi praktyczne<\/h3>\n<p>&#8211; U\u017cywaj kodu 301 je\u015bli przekierowanie jest sta\u0142e.<br \/>\n&#8211; Je\u015bli przekierowujesz do HTTPS, upewnij si\u0119, \u017ce certyfikaty s\u0105 poprawnie skonfigurowane.<br \/>\n&#8211; Je\u015bli chcesz zachowa\u0107 inne parametry zapytania (query string), w nginx u\u017cyj np.:<br \/>\nreturn 301 https:\/\/example.com\/influencer\/?i=ana&amp;$args;<br \/>\na w Apache dodaj flag\u0119 [QSA] przy RewriteRule, aby do\u0142\u0105czy\u0107 istniej\u0105ce query stringi.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Jak ustawi\u0107 domeny w nginx i Apache dla Social Storefront? W Social Storefront standardowo strony s\u0105 tworzone jako parametry doklejane do g\u0142\u00f3wnego adresu,<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"class_list":["post-2461","post","type-post","status-publish","format-standard","hentry","category-storefront"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/help.quarticon.com\/pl\/wp-json\/wp\/v2\/posts\/2461","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.quarticon.com\/pl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/help.quarticon.com\/pl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/help.quarticon.com\/pl\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/help.quarticon.com\/pl\/wp-json\/wp\/v2\/comments?post=2461"}],"version-history":[{"count":2,"href":"https:\/\/help.quarticon.com\/pl\/wp-json\/wp\/v2\/posts\/2461\/revisions"}],"predecessor-version":[{"id":2465,"href":"https:\/\/help.quarticon.com\/pl\/wp-json\/wp\/v2\/posts\/2461\/revisions\/2465"}],"wp:attachment":[{"href":"https:\/\/help.quarticon.com\/pl\/wp-json\/wp\/v2\/media?parent=2461"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/help.quarticon.com\/pl\/wp-json\/wp\/v2\/categories?post=2461"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/help.quarticon.com\/pl\/wp-json\/wp\/v2\/tags?post=2461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}