Jump to content

Can't access index.php


Recommended Posts

I installed the latest 1.4 without any issues. I have all the prestashop files in a folder on my server named prestashop1.4. I can access admin ok and I can view all the other pages of the store online.

When I try to view the index.php it takes me to a list of files titled Index of /prestashop1.4 and when I try to choose the index.php from there it doesn't do anything. Also when I view the other pages online and choose Home it takes me to the Index of/prestashop1.4 page.

 

What am I doing wrong?

Link to comment
Share on other sites

Nothing that is correct and as it should be, if you take a look at the index.php file in an editor you will see that it does nothing more then call to other files.

As for the home link does the link take you to a page titled list of pages inHome, if so that is the link that is coded by prestashop, this can be changed but does takes a little time to find the various files.

Link to comment
Share on other sites

So if choosing index.php on my server doesn't open up the stores home page how do I get to the home page?

My limited knowledge of this says I should be able to access it by typing mywebsite.com/prestashop1.4/index.php in the browser window. Correct? That just takes me to the Index of /prestashop1.4 webpage with all the files listed.

 

So (just to clarify a little) trying to access the home page of the store via my server (choosing index.php in my file manager) brings me to the attached file page. Choosing index.php on this "Index of" page does nothing but refresh the "Index of" page.

 

I can open other parts of the store via this "index of" page and when I use the breadcrumb links to go back to the home page of the store it goes back to the "Index of" page.

 

I'm just stumped on how to access the home page in any way.

Link to comment
Share on other sites

Ok I think I misunderstood what you were saying about the index.php file.

If you type mywebsite.com/prestashop1.4/index.php yes you should see your home page.

What if you type mywebsite.com/prestashop1.4 what do you get then.

 

Lets take a look at your your back office set up under preferences SEO & URLs. (very bottom)

Is this the way it is set.

Have you generated an htaccess under tools, generators if not do so.

 

PS Directory - /prestashop1.4/

Homepage file - index.php

Shop domain name - mywebsite.com/prestashop1.4

Shop domain name for SSl - (set before enabling SSL)

 

Friendly URL - Yes

 

Automatically redirect - Yes

Link to comment
Share on other sites

If I type in www.mywebspace.com/prestashop1.4/ it just goes to that "Index of /" page.

 

I changed some of the SEO & URL settings and generated an htaccess.

 

This is a step in the right direction. The index.php on my server now goes to the storefront BUT:

 

1. It only does this if I leave the "Shop domain name for SSL" field blank making me believe I don't know what to put here.

 

2. Now that I can access the storefront, there is a 404 error.

 

Here is the link

 

I also tried reinstalling it so it's now not in the prestashop1.4 folder. It's in the prestashop folder. Still typing in www.mywebspace.com/prestashop/ makes it go to the "Index of /" page.

 

The only way I can access the storefront is viewing the index.php from my server/file manager.

Link to comment
Share on other sites

I'm not sure about the SSL certificate. I'll have to look into that. I'm very new at all this and am surprised I got this far! :)

 

Update:

 

After screwing around with the SEO & URL a little, I seem to have it working somewhat.

Not 100% sure what I did. I changed the "homepage file" from index.php/prestashop/ to index.php and that didn't work. I changed it back to index.php/prestashop/ and now I don't have the 404 error.

 

Here is the link

 

Now the url is really odd though. It's "http://griffineffects.com/prestashop/index.php/prestashop/"

 

I attached my SEO & URL settings.

Link to comment
Share on other sites

Ok I found the problem the body ID somehow is set to "index.php/prestashop/" it should just be "index".

Have you modified any files and are you sure you have the SEO & URLs as I stated in my other post.

 

Homepage file is just index.php nothing else, this is part of the issue If I change this with my developer tool I can access the main page.

Set to just Index.php and generate a new htaccess file and let me know and I will have another look.

Link to comment
Share on other sites

I haven't changed any files on the server at all. I have the prestashop folder right in griffineffects.com root folder (see attached).

 

When I change the homepage file back to index.php from index.php/prestashop/ I can't access the storefront again. It just goes to the Index of page again. Oh, and I did generate another htaccess.

 

How do I change the Body ID?

Link to comment
Share on other sites

So that was the only problem? That is amazing. Thank you again for helping me with it. I'm kind of afraid to touch anything!!! I've been going through the modules trying to figure out everything. It all seems to be working perfectly so far.

File saved in a safe place in an online file storage and on a disk.

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