PrestaShop Forum

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum

Jump to content

 

Root directory vs subdirectory? Which one is better?

1 reply to this topic
#1
SK01

    PrestaShop Apprentice

  • Members
  • PipPip
  • 47 posts
Hello. I have just finished my new design for my new store.

Currently it is located in a subdirectory (/store)

Is there any problems to have the store in a subdirectory? Or is it better to let it be in the root directory?

Also 1 more question, how can I move my store from the subdirectory to the root? Without losing any data and so on..

/SK01
Have you been helped? Give something back - help others!

#2
DevNet

    PrestaShop Fanatic

  • Moderators
  • 1822 posts
Yes you can make your migration easier.
Do not forget to configure your config/setting.inc.php.

Just replace :
define('__PS_BASE_URI__', '/store/');

by :
define('__PS_BASE_URI__', '/');


For database, there is nothing to do.

Best regards
Image IPBImage IPBImage IPBImage IPBBlog : Ressources développement web
Développement web | Php | Sql | Smarty | Js/Jquery/Ajax | Css | SEO | Administration Serveur Linux | Infogérance