aliaspt Posted October 8, 2010 Share Posted October 8, 2010 Can anyone please point me in a right direction - I just moved the store to the root directory and the product pages show 404 error. What do I need to do with the htaccess file to make it work? I gave it writing permissions but the file has only two lines about php5.Thank you!EDITING TO ADD:This was NOT solved. I never was able to move the subfolder to root directory properly. So, I moved the folder back where it was and added htaccess code provided here http://www.prestashop.com/forums/viewthread/18393/help_installation___upgrade/move_prestashop_from_subfolder_to_root/ Link to comment Share on other sites More sharing options...
shokinro Posted October 8, 2010 Share Posted October 8, 2010 Try to do this1. At back office - Preferences, set "Friendly URL" to "No" and click "save" button.2. Make sure you have changed the __PS_BASE_URI__ setting at config/setting.inc.php to root. define('__PS_BASE_URI__', '/');3. Go back to back office - Preferences, set "Friendly URL" to "Yes" and click "save" button.4. Click "generate a .htaccess file" hyperlink which is under Friendly URL section. Make sure you have set correct write permission on .htaccess file and file. Link to comment Share on other sites More sharing options...
aliaspt Posted October 8, 2010 Author Share Posted October 8, 2010 Didn't work. Do I need to change permissions of other files after moving them to the root directory? They appear to be different from the subfolder permissions. Link to comment Share on other sites More sharing options...
shokinro Posted October 8, 2010 Share Posted October 8, 2010 I think if you moved the whole folder, all permission setting should be kept as before.1. try to empty the .htaccess file, then redo the generating, to see if the file is updated, if so, it means not permission problem.2. set the display_errors to "on" at /config/config.inc.php, and try to re-generate the file again, see if there is any errors.@ini_set('display_errors', 'off'); Link to comment Share on other sites More sharing options...
aliaspt Posted October 8, 2010 Author Share Posted October 8, 2010 The htaccess file remained empty. Permissions are set to 666. Where can I see errors? Thank you! Link to comment Share on other sites More sharing options...
aliaspt Posted October 8, 2010 Author Share Posted October 8, 2010 So, what worked for me was copying/pasting the old htaccess file and removing the subfolder (/shop/) manually, saving and uploading it back to the server. Now it opens links properly. Do I need to change 'display errors' back to off?Thank you! Link to comment Share on other sites More sharing options...
rocky Posted October 9, 2010 Share Posted October 9, 2010 Yes, you should change 'display_errors' to 'off' when you are not using it, so that can see error messages on your site and find out your username. Link to comment Share on other sites More sharing options...
aliaspt Posted October 9, 2010 Author Share Posted October 9, 2010 Thanks, rocky, I just changed that back.I wonder if I should change the title of this topic to "solved". It's not quite solved yet, my website is a mess. But I've been discussing this in another topic. 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