Jump to content

[SOLVED] Language Redirection Broke Front End While Transferring Host and Domain


Recommended Posts

I have a working instance of Prestashop 1.7.2 on an Ubuntu Server 16.04.4 LST.

I am currently migrating the shop over to an AWS EC2 Instance using the same.

The migration seemed to go fine and I have adjusted the domain changes in the ps_shop URL and the access to the backend works fine.

When I try to access the front end I get an apache 404 Not Found error was the domain "example.com" redirects to "example.com/en/".

On my current instance which is on my local network the redirect from "192.168.50.139" redirects to "192.168.50.139/en/" which is found.

 

Apache Logs (From Local Instance)

192.168.50.102 - - [02/May/2018:16:57:31 -0400] "GET /en/ HTTP/1.1" 200 24107 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.117 Safari/537.36"
192.168.50.102 - - [02/May/2018:16:57:32 -0400] "GET /themes/sp_shop4u/assets/css/responsive.css HTTP/1.1" 200 2627 "http://192.168.50.139/en/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.117 Safari/537.36"
192.168.50.102 - - [02/May/2018:16:57:32 -0400] "GET /themes/sp_shop4u/assets/css/theme-ed1c24.css HTTP/1.1" 200 40670 "http://192.168.50.139/en/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.117 Safari/537.36"
192.168.50.102 - - [02/May/2018:16:57:32 -0400] "GET /img/p/en-default-large_default.jpg HTTP/1.1" 404 111394 "http://192.168.50.139/en/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.117 Safari/537.36"
192.168.50.102 - - [02/May/2018:16:57:32 -0400] "GET /ytc_templates/prestashop/sp_shop4u/themes/sp_shop4u/assets/img/cms/img-megamenu-3.jpg HTTP/1.1" 404 111448 "http://192.168.50.139/en/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.117 Safari/537.36"
192.168.50.102 - - [02/May/2018:16:57:32 -0400] "GET /ytc_templates/prestashop/sp_shop4u/themes/sp_shop4u/assets/img/cms/img-megamenu-2.jpg HTTP/1.1" 404 111450 "http://192.168.50.139/en/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.117 Safari/537.36"
192.168.50.102 - - [02/May/2018:16:57:32 -0400] "GET /ytc_templates/prestashop/sp_shop4u/themes/sp_shop4u/assets/img/cms/img-megamenu-1.jpg HTTP/1.1" 404 111446 "http://192.168.50.139/en/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.117 Safari/537.36"
192.168.50.102 - - [02/May/2018:16:57:32 -0400] "GET /themes/core.js.map HTTP/1.1" 404 111382 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.117 Safari/537.36"
192.168.50.102 - - [02/May/2018:16:57:32 -0400] "GET /themes/sp_shop4u/assets/css/theme.css.map HTTP/1.1" 404 111408 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.117 Safari/537.36

 

Apache Access Log from new instance:

XXXXXXXXXX - - [02/May/2018:20:59:03 +0000] "GET /en/ HTTP/1.1" 404 533 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.117 Safari/537.36"

 

Backend admin accss is still fully functional.

 

I activated friendly URLs, regenerated htaccess file, tried to have only one language activated. Nothing.

Am I missing something?    Can anyone help me out with this?

Edited by Kris Jessome (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...