walkies Posted December 28, 2010 Share Posted December 28, 2010 HiI am new to PrestaShop and have successfully installed it on my server.It is located in a subfolder called prestashop but when I click on the Home link from a product the url doesn't have the index.php at the end of it and thus is causing an incorrect page to be displayed. e.g. http://www.1stclasswalkies.co.uk/prestashop/ is the url on the home link but when you navigate to that page it is showing a broken site page instead.I'd like to specify this http://www.1stclasswalkies.co.uk/prestashop/index.php url instead on the home link. Can anyone tell me which file I update to specify this specific url and whether or not it can be done ?Loving this software and defo looks the business .... ThanksKate Link to comment Share on other sites More sharing options...
rocky Posted December 28, 2010 Share Posted December 28, 2010 You should remove index.html from the root directory of your server so that index.php becomes the default file when you don't specify a filename. Link to comment Share on other sites More sharing options...
walkies Posted December 28, 2010 Author Share Posted December 28, 2010 Thank you for your reply. I removed as suggested but still getting same problem. Link to comment Share on other sites More sharing options...
rocky Posted December 29, 2010 Share Posted December 29, 2010 That's weird. As long as there aren't any index files except for index.php, it should load index.php by default. I'm not sure why it isn't on your site. Check to make sure there aren't any other files starting with index in the root directory. The file index.php should be the only one.The only other solution is to add a redirect in your .htaccess file. Something like this should work, though I haven't tested it: RewriteCond %{http_host} ^1stclasswalkies.co.uk/$ [nc] RewriteRule ^(.*)$ http://www.1stclasswalkies.co.uk/index.php [r=301,nc] Link to comment Share on other sites More sharing options...
walkies Posted December 29, 2010 Author Share Posted December 29, 2010 Thank you for your reply.There is another index.php which is in the root of the website which is required for the landing page of the entire website. The shop is in a sub directory of the root and when you press the Home link it loads the index.php from the site root. It then shows the landing page but obviously it looks broken because the image paths are incorrect from where it was called.So I have to somehow tell the shop that its own root folder is /prestashop/index.php and not /index.phpI think prestashop thinks its in the root of the site when it isn't.Any ideas or is there somewhere in the code that I can change the home link path? Link to comment Share on other sites More sharing options...
rocky Posted December 29, 2010 Share Posted December 29, 2010 When I went to your PrestaShop website, all the links already include /prestashop/ so I think you have it set up correctly. It is the __PS_BASE_URI__ in config/settings.inc.php that defines the root directory. I don't understand why you have two different shop systems installed in the same directory. That will probably cause problems. It would be better to have them in separate directories. The landing page with the broken links seems to be regular HTML and not related to PrestaShop. Link to comment Share on other sites More sharing options...
walkies Posted December 29, 2010 Author Share Posted December 29, 2010 Thanks again Rocky.I only have one shop installed. 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