MrLoud Posted January 31, 2010 Share Posted January 31, 2010 Hi,I created a site in a subdirectory, e.g. www.domain.com/prestashop. Everything is working fine and the shop is ready to go live.But I want to transfer my shop form the /prestashop directory to the www.domain.com root.1) I copied all the files from /domains/domain.com/public_html/prestashop into the /domains/domain.com/public_html, 2) I changed Preferences > PS folder to / instead of /prestashop/,3) I changed the file settings.inc.php define('__PS_BASE_URI__', '/prestashop/'); to define('__PS_BASE_URI__', '/'); Admin, categories and product pages are accessible. But www.domain.com and /...php pages are not shown.This is my .htaccess: # URL rewriting module activation RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.domain\.nl [NC] RewriteRule ^(.*)$ http://www\.domain\.nl/$1 [L,R=301] # URL rewriting rules RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2$3.jpg [L,E] RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/c/$1$2.jpg [L,E] RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$3&isolang;=$1$5 [L,E] RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2&isolang;=$1$4 [L,E] RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$2&isolang;=$1 [QSA,L,E] RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2$4 [L,E] RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$1$3 [L,E] RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$1 [QSA,L,E] RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /cms.php?id_cms=$1 [QSA,L,E] RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ /supplier.php?id_supplier=$1$3 [QSA,L,E] RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /manufacturer.php?id_manufacturer=$1$3 [QSA,L,E] RewriteRule ^lang-([a-z]{2})/(.*)$ /$2?isolang=$1 [QSA,L,E] # Catch 404 errors ErrorDocument 404 /404.php IE says error 500 internal server error.What else do I have to change to fix this?I hope somebody knows the answer. I would be very grateful!! Link to comment Share on other sites More sharing options...
uddhava Posted January 31, 2010 Share Posted January 31, 2010 We dont you just empty the .htaccess and let PS create a new one?ys Link to comment Share on other sites More sharing options...
MrLoud Posted January 31, 2010 Author Share Posted January 31, 2010 I tried it, but it doesn't work unfortunately. Link to comment Share on other sites More sharing options...
uddhava Posted January 31, 2010 Share Posted January 31, 2010 Can you send a link to your site?And are there maybe more settings files, or maybe in the database ? (PREFIX_configuration table) Link to comment Share on other sites More sharing options...
MrLoud Posted January 31, 2010 Author Share Posted January 31, 2010 I don't understand what you mean with more settings files and PREFIX_configuration table.thanks for your help! Link to comment Share on other sites More sharing options...
uddhava Posted January 31, 2010 Share Posted January 31, 2010 Wow, mooie site.En die fijne afrekenen pagina is wel heel handig. Welke module is dat? Leuk om te hebbenIk krijg ook een lege pagina op designvazen.nl. (FF)meestal dus een server error. Gooi de .htaccess eens weg. Dan kijken we verder. Link to comment Share on other sites More sharing options...
tomerg3 Posted February 1, 2010 Share Posted February 1, 2010 I don't see an error 500.Usually those errors are related to permission, but since they are general errors, the best thing to do is to go to the cPanel of your host and check the error log. Link to comment Share on other sites More sharing options...
MrLoud Posted February 1, 2010 Author Share Posted February 1, 2010 Wow, mooie site.En die fijne afrekenen pagina is wel heel handig. Welke module is dat? Leuk om te hebbenIk krijg ook een lege pagina op designvazen.nl. (FF)meestal dus een server error. Gooi de .htaccess eens weg. Dan kijken we verder. Dat is deze module: http://www.canin.sk/prestashop/presta-modules/17-one-page-checkout.htmlI deleted the .htaccess file and created a new one with prestashop, but it still doesn't work.My error log shows errors, the main error is file does not exist ..... public_html/favicon.ico.So I uploaded the favicon.ico into the public_html root. It doesn't help.Any other suggestions?Thanks for your help! I really appreciate it!And Tomer, thanks for the module. I bought it and its great. Link to comment Share on other sites More sharing options...
MrLoud Posted February 1, 2010 Author Share Posted February 1, 2010 It was a permissions issue indeed!Fixed it, works as a charm.Thanks! Link to comment Share on other sites More sharing options...
uddhava Posted February 1, 2010 Share Posted February 1, 2010 So great, you solved it.Which permissions were messed up ? Link to comment Share on other sites More sharing options...
MrLoud Posted February 1, 2010 Author Share Posted February 1, 2010 the standard setup permissions for folders like /img, shame on me..I copied the folders and expected that the permissions stayed the same. Apparently not.Nogmaals bedankt voor je hulp!Heb je zelf ook een prestashop site? Link to comment Share on other sites More sharing options...
uddhava Posted February 1, 2010 Share Posted February 1, 2010 So thats a good thing to remember, the permissions.I was busy creating a shell script to take care of that. I might post it on the forum when i am done.Ja, nee ben bezig er eentje op te zetten! www.varsana.nl. Link to comment Share on other sites More sharing options...
bambi Posted February 28, 2010 Share Posted February 28, 2010 Hi MrLoud and other helping angels,I am trying to move a shop placed in a subdirectory on one server to the root on a new server with a new domain name. Backed up the database and the shop.1. copied the data base to the new server2. copied the backed up shop to the root (public_html)3. changed permissions4. changed file settings.inc.php so they match site and data baseStill can't open the shop. What am I missig?Any help would be very much appriciated :-) Link to comment Share on other sites More sharing options...
jeepsterdk Posted March 6, 2010 Share Posted March 6, 2010 Hi MrLoud and other helping angels,I am trying to move a shop placed in a subdirectory on one server to the root on a new server with a new domain name. Backed up the database and the shop.1. copied the data base to the new server2. copied the backed up shop to the root (public_html)3. changed permissions4. changed file settings.inc.php so they match site and data baseStill can't open the shop. What am I missig?Any help would be very much appriciated :-) I'm at the same point, but I am wondering: Where do you this file settings.inc.php ? Link to comment Share on other sites More sharing options...
bambi Posted March 6, 2010 Share Posted March 6, 2010 Hi jeepsterdk In the config folder there is a file settings.inc.php. You would need an FTP program to change this file. If you don't have one I recomend filezila - free and works very well.Hope this helps Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now