Jump to content

Shop Url doesn't work if IP adress is given in local environement


J.Sahu

Recommended Posts

Hello,

I'm testing PrestaShop in my local server. Now the settings are like this :-

 

Shop domain : localhost
 
SSL domain: localhost
 
Base URI : prestasho_main
 
When i try to access the shop on my intranet using the ip address 192.168.1.205, then it redirects to the local host so I can't access the shop remotely.
I know its the url redirecting so tried to change the url to 
 
Shop domain : 192.168.1.205
 
SSL domain: localhost
 
Base URI : prestasho_main

 

clicking on save it returns 

 

Property ShopUrl->domain is empty

 

My seo/friendly url is off and I checked making the canonical url redirection to on and off but it dosen't work.

Can anyone give some idea or solution to it.

Link to comment
Share on other sites

Hello,

I'm testing PrestaShop in my local server. Now the settings are like this :-

 

Shop domain : localhost
 
SSL domain: localhost
 
Base URI : prestasho_main
 
When i try to access the shop on my intranet using the ip address 192.168.1.205, then it redirects to the local host so I can't access the shop remotely.
I know its the url redirecting so tried to change the url to 
 
Shop domain : 192.168.1.205
 
SSL domain: localhost
 
Base URI : prestasho_main

 

clicking on save it returns 

 

Property ShopUrl->domain is empty

 

My seo/friendly url is off and I checked making the canonical url redirection to on and off but it dosen't work.

Can anyone give some idea or solution to it.

 

Hi.

 

U need to change your base URI to "/prestasho_main/" and not "prestasho_main".

 

this if u has the installation on your on line server in a folder "prestasho_main" but if the installation directly in your web server you just need to put "/" in your base URI.

 

This you can made on the folder "config/settings.inc.php"  in the line "define(‘__PS_BASE_URI__’, ‘/prestasho_main/’);"

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...