cancel
Showing results for 
Search instead for 
Did you mean: 

project in subfolder (example.com/path/to/magento)

Highlighted

project in subfolder (example.com/path/to/magento)

Hi, this is a kinda simple question still I'm struggling to figure out how to achieve this.

I have a landing page, and if the user clicks to enter a certain section I want him to see the store (located at /magento).

 

When I'm installing Magento through the command line there's a baseURL argument, what I should put in there? My intuition is it should be example.com/magento, but I get errors.

Maybe I'm not configuring Nginx properly. Here's my super simple config:

server {    listen                      80 default_server;    listen                      443 default_server ssl;    ssl_certificate             /etc/nginx/ssl/cert.pem;    ssl_certificate_key         /etc/nginx/ssl/key.pem;    client_max_body_size        10M;    root /var/www/html;    location /magento {
root /var/www/html/magento; index index.php; } }

I tried using baseURL as example.com and example.com/magento, I also tried removing the location ./magento... from Nginx. I will get 404 errors.

Any ideas on how tho achieve this goal? Thanks.

1 REPLY 1

Re: project in subfolder (example.com/path/to/magento)

Please follow the below to resolve this

 

To Install magento 2 in subfolder you can follow this.
https://magento.stackexchange.com/questions/207671/magento-2-install-to-subfolder-problem

 

Let me know if any issues


If my answer is useful, please Accept as Solution & give Kudos