Jump to content

Home Menu Link


Recommended Posts

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

Thanks

Kate

Link to comment
Share on other sites

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

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

I 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

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

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