Jump to content

domain.com/shop to domain.com/prestashop?


Recommended Posts

I installed prestashop in a sub folder, back office works perfectly but whenever I go to domain.com/shop it auto redirects to domain.com/prestashop and I get blank page.

I've been getting several erros trying to install prestashop in a sub folder, is that even possible anyway?

Link to comment
Share on other sites

Check SEO & URL for PS directory it should be /shop/ that is if you installed to yourdomain.com/shop.

In the two other address fields you should have either www.yourdomain.com or yourdomain.com.

I have always had Prestashop in a sub folder without any issues.

Also have you generated an .htaccess file and do you have Friendly URL's and Automatic redirect enabled.

If so did you generate a new .htaccess file after enabling them.

Link to comment
Share on other sites

Well looks like the Friendly URL was enabled for the folder I used before /prestashop and a shortcut for prestashop, of course it's shop. I have no idea on how to cancel it but for now I renamed the sub folder to /store, working fine so far.

Thank you for your time, I'm sorry I asked such a silly question haha.

Link to comment
Share on other sites

Oh looks like I'm having the same problema again...How can I cancel de auto redirect ? my shop now get redirects to /store/store/

I must confess this time I I put my domain like this: domain.com/store at SEO & URL > Shop domain name. Also after some time I get redirected to 404 error page. I'm sick of reinstalling my shop a thousand times :(

Edit: But I think it's in the wrong section if it's about url

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

Here is how it should look:

 

ps directory - /shop/

 

homepage file - index.php

 

shop domain name - yourdomain.com

 

Shop domain name for ssl - yourdomain.com

 

You should make sure to turn on force compile and cache to off.

Also it would not huet to use your ftp program and go to tools/smarty/cache and delete all files except index.php

do the same for tools/smarty/compile and tools smarty2.

 

Be sure if you make changes to any url to regen. the .htaccess.

Link to comment
Share on other sites

  • 2 weeks later...

hello all,, i need some help! can i change my url adress from mydomain.com/prestashop to mydomain.com? do you think it can be done by moving all files in prestashop folder to public html folder? i want to do this, but dont want to take risk of losing all my works :D if somebody know about this. thanks

Link to comment
Share on other sites

yes, it can very easily be done.

 

first start by taking full backups of your database and your web content. if you do not know how to do this, then stop reading and go research that first. you will likely have access to phpmyadmin to take a database backup. Then using an FTP client, take full backups of everything under the public_html folder, and store them on your local computer.

 

i cannot stress the backup piece enough, go do it, then come back and continue reading

 

ok, backups complete? next using the FTP client, upload all files and folders that are located under the prestashop folder from your local computer, to the servers public_html folder. this will likely take some time to complete.

 

once the upload is complete, you need to edit the config/settings.inc.php

from

define('__PS_BASE_URI__', '/prestashop/');

 

to

define('__PS_BASE_URI__', '/');

 

now if you use friendly URL's, you will need to re-generate the .htaccess file. if you do, then login into your backoffice, navigate to Tools | Generators, and regenerate your .htaccess file

Link to comment
Share on other sites

  • 2 months later...

Hi

 

my prestashop folder is not my root directory, I created one folder called shopps

like www.website.com/shopp.

 

shopp is another domain name called : www.shopp.com

 

my hosting company is godaddy, I redirect the url www.shopp.com to shopp folder

 

and backend I created, ,htaccess, give a permission 666. I made SEO and URL friendly,

 

I did setting Inc. define('__PS_BASE_URI__', '/shopp/'); to ('__PS_BASE_URI__', '/');

define('__PS_BASE_URI__', '/');

 

 

now Iam getting .htaccess :

Redirect permanent /index.php http://www.website.com/shopp/

 

 

Still When I type www.shopp.com, it displays the url address http://www.website.com/shopp/products.html

 

actually, it have to show : www.shopp.com/ products html

 

 

Can U please help me how to sort out, Iam trying more than 2 days

 

Thanks in Advance

 

Martin

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