herwaldi Posted December 12, 2016 Share Posted December 12, 2016 Witam, mam problem z dodaniem Intro na stronę główną (intro z wyborem języka) Obecnie strona mi się od razu wczytuje na zasadzie domena.com/pl , chcę żeby wczytywało intro na domenie domena.com. Gdy dodaje w htaccess wpis który przekierowuje domenę na stronę główną to wybór działa, mój plik front.html zostaje zczytany lecz gdy chce dodać cokolwiek do koszyka sypie mi błędami ponieważ widzi stronę jakby w katalogu języka i nie może znaleźć plików js/css etc. Czy jest jakiś sposób żeby móc dodać plik intro, np. front/index .html jako stronę główną i wszystko działało? błąd po dodaniu w htacess przy dodawaniu do koszyka jest następujący: "Impossible to add the product to the cart.textStatus: 'parsererror'errorThrown: 'SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data'responseText: " Link to comment Share on other sites More sharing options...
Piotr K. Posted December 12, 2016 Share Posted December 12, 2016 Dodawanie intra z wyborem języka to zło. Możesz spróbować przestawić serwer aby domyślnie najpierw wczytywał plik intro zamiast index.php - nie wiem czy zadziała ale to najprostszy sposób. Link to comment Share on other sites More sharing options...
herwaldi Posted December 12, 2016 Author Share Posted December 12, 2016 Hmm a w jaki sposób mógłbym to zrobić? Link to comment Share on other sites More sharing options...
Piotr K. Posted December 12, 2016 Share Posted December 12, 2016 np. w .htaccess dodaj linijkę: DirectoryIndex intro.html index.php więcej na: httpd.apache.org/docs/current/mod/mod_dir.html PS: Język się ustawia na bazie języka przeglądarki i ip a przy kolejnym wejściu na podstawie cookies. Link to comment Share on other sites More sharing options...
endriu107 Posted December 12, 2016 Share Posted December 12, 2016 Użyj modułu popup do tego, to jest chyba najprostsze rozwiązanie. Link to comment Share on other sites More sharing options...
herwaldi Posted December 13, 2016 Author Share Posted December 13, 2016 Gdy dodaje przez htacess to nie dziala koszyk - 1 post, popup nie bardzo ponieważ chcę żeby google indeksował stronę jako polską - póki co mi nie rozróżnia języków. Gdy dodaje intro jest okej ale nieszczęsny koszyk Link to comment Share on other sites More sharing options...
Piotr K. Posted December 13, 2016 Share Posted December 13, 2016 Jeśli chodzi tylko o google to możesz jeszcze się zainteresować pojęciem cloaking ale to ciężki temat (jeśli ma być skuteczny) i dość ryzykowny (w razie wykrycia). Polska wersja jest pod adresem domena/pl/ i zapewne jaki jest w wynikach. Moim zdaniem dla seo lepiej użyć osobnych domen na kraje/języki. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now