Jump to content

[SOLVED]"Index of "/ instead home page


Recommended Posts

hello

you mean that you installed shop in subdirectory named /prestashop2/ and while you're trying to connect to your website - you see index of instead of page?

 

if so, i think that you have to move all files from subdirectory to root dir of your hosting account

Link to comment
Share on other sites

hello

you mean that you installed shop in subdirectory named /prestashop2/ and while you're trying to connect to your website - you see index of instead of page?

 

if so, i think that you have to move all files from subdirectory to root dir of your hosting account

Yes, "prestashop2" its the name of my sub directory.

 

I had already try to do that but then I cant access my categories.

Link to comment
Share on other sites

I have try to do that again. Move all files to root directory, change base url to my domain, change ps_shop_url  - physical url to my domain and now getting Internal Server Error. Have I done something wrong or do I have to change something else ?

Link to comment
Share on other sites

let's clarify.

you moved all files from prestashop2 to root dir of your hosting account. have you changed also permissions for all necessary files (like you had while installation of prestashop) ?

yes, I have done all that. I changed permission to 755 also I changed  base url in my back office to my domain and ps_shop_url  - physical url to my domain. I regenerate .htaccess file. Did i miss something ?

Link to comment
Share on other sites

That is my last showing error, but now im getting 500 Internal Server Error

 

[sun Feb 09 21:29:22 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/404.shtml
[sun Feb 09 21:29:22 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/jdsindustrysupply.ie
[sun Feb 09 21:28:08 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/404.shtml
[sun Feb 09 21:28:08 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/jdsindustrysupply.ie
[sun Feb 09 21:27:45 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/404.shtml
[sun Feb 09 21:27:45 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/jdsindustrysupply.ie
[sun Feb 09 21:24:49 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/404.shtml
[sun Feb 09 21:24:49 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/jdsindustrysupply.ie
[sun Feb 09 21:22:20 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/404.shtml
[sun Feb 09 21:22:20 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/jdsindustrysupply.ie
[sun Feb 09 21:22:03 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/404.shtml
[sun Feb 09 21:22:03 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/jdsindustrysupply.ie
[sun Feb 09 21:21:55 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/404.shtml
[sun Feb 09 21:21:55 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/jdsindustrysupply.ie
[sun Feb 09 20:48:58 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/prestashop2/9-bar-and-cellar-hygiene, referer: http://jdsindustrysupply.ie/prestashop2/
[sun Feb 09 20:48:25 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/prestashop2/9-bar-and-cellar-hygiene, referer: http://jdsindustrysupply.ie/prestashop2/
[sun Feb 09 20:48:10 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/prestashop2/3_evans, referer: http://jdsindustrysupply.ie/prestashop2/
[sun Feb 09 20:17:30 2014] [error] [client 109.255.174.192] client denied by server configuration: /home/jdsindev/public_html/.htaccess
[sun Feb 09 19:34:11 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/404.shtml
[sun Feb 09 19:34:11 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/favicon.ico
[sun Feb 09 19:34:11 2014] [error] [client 109.255.174.192] client denied by server configuration: /home/jdsindev/public_html/.htaccess
[sun Feb 09 18:33:39 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/prestashop2/index.php, referer: http://jdsindustrysupply.ie/prestashop2/admin3536/index.php?controller=AdminMeta&token=8ab8706bc0d105f0632953a6ab460c93
[sun Feb 09 18:33:39 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/prestashop2/admin3536, referer: http://jdsindustrysupply.ie/prestashop2/admin3536/index.php?controller=AdminMeta&token=8ab8706bc0d105f0632953a6ab460c93
[sun Feb 09 18:32:31 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/prestashop2/index.php
[sun Feb 09 18:32:31 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/prestashop2/index.php
[sun Feb 09 18:32:17 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/prestashop2/index.php
[sun Feb 09 18:32:17 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/prestashop2/index.php
[sun Feb 09 18:32:11 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/prestashop2/index.php
[sun Feb 09 18:32:11 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/prestashop2/index.php
[sun Feb 09 18:29:12 2014] [error] [client 109.255.174.192] client denied by server configuration: /home/jdsindev/public_html/.htaccess
[sun Feb 09 18:26:57 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/prestashop2/content, referer: http://jdsindustrysupply.ie/prestashop2/prices-drop
[sun Feb 09 18:13:25 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/404.shtml
[sun Feb 09 18:13:25 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/favicon.ico
[sun Feb 09 18:13:25 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/404.shtml
[sun Feb 09 18:13:25 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/favicon.ico
[sun Feb 09 18:13:25 2014] [error] [client 109.255.174.192] client denied by server configuration: /home/jdsindev/public_html/.htaccess
[sun Feb 09 17:57:18 2014] [error] [client 109.255.174.192] client denied by server configuration: /home/jdsindev/public_html/.htaccess, referer: http://jdsindustrysupply.ie/prestashop2/
[sun Feb 09 17:57:00 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/404.shtml
[sun Feb 09 17:57:00 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/favicon.ico
[sun Feb 09 17:57:00 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/404.shtml
[sun Feb 09 17:57:00 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/favicon.ico
[sun Feb 09 16:32:35 2014] [error] [client 66.249.75.195] client denied by server configuration: /home/jdsindev/public_html/.htaccess
[sun Feb 09 13:51:40 2014] [error] [client 66.249.75.195] File does not exist: /home/jdsindev/public_html/404.shtml
[sun Feb 09 13:51:40 2014] [error] [client 66.249.75.195] File does not exist: /home/jdsindev/public_html/about_us.html
[sun Feb 09 11:59:26 2014] [error] [client 66.249.75.195] File does not exist: /home/jdsindev/public_html/404.shtml
[sun Feb 09 11:59:26 2014] [error] [client 66.249.75.195] File does not exist: /home/jdsindev/public_html/JDSIndustrySupply
[sun Feb 09 11:50:18 2014] [error] [client 91.240.109.85] File does not exist: /home/jdsindev/public_html/404.shtml
[sun Feb 09 11:50:18 2014] [error] [client 91.240.109.85] File does not exist: /home/jdsindev/public_html/prestashop3
[sun Feb 09 11:50:18 2014] [error] [client 91.240.109.73] File does not exist: /home/jdsindev/public_html/404.shtml
[sun Feb 09 11:50:18 2014] [error] [client 91.240.109.73] File does not exist: /home/jdsindev/public_html/prestashop3
[sun Feb 09 11:50:18 2014] [error] [client 91.240.109.118] File does not exist: /home/jdsindev/public_html/404.shtml
[sun Feb 09 11:50:18 2014] [error] [client 91.240.109.118] File does not exist: /home/jdsindev/public_html/prestashop3
[sun Feb 09 11:50:18 2014] [error] [client 91.240.109.92] File does not exist: /home/jdsindev/public_html/404.shtml
[sun Feb 09 11:50:18 2014] [error] [client 91.240.109.92] File does not exist: /home/jdsindev/public_html/prestashop3
[sun Feb 09 11:50:18 2014] [error] [client 91.240.109.77] File does not exist: /home/jdsindev/public_html/404.shtml
[sun Feb 09 11:50:18 2014] [error] [client 91.240.109.77] File does not exist: /home/jdsindev/public_html/prestashop3
[sun Feb 09 11:50:17 2014] [error] [client 91.240.109.81] File does not exist: /home/jdsindev/public_html/404.shtml
[sun Feb 09 11:50:08 2014] [error] [client 91.240.109.81] File does not exist: /home/jdsindev/public_html/prestashop3
[sun Feb 09 11:33:38 2014] [error] [client 66.249.75.195] File does not exist: /home/jdsindev/public_html/404.shtml
[sun Feb 09 11:33:38 2014] [error] [client 66.249.75.195] File does not exist: /home/jdsindev/public_html/products_2.html
[sun Feb 09 11:16:06 2014] [error] [client 66.249.75.195] File does not exist: /home/jdsindev/public_html/404.shtml
[sun Feb 09 11:16:06 2014] [error] [client 66.249.75.195] File does not exist: /home/jdsindev/public_html/robots.txt
[sun Feb 09 08:18:45 2014] [error] [client 66.249.75.195] client denied by server configuration: /home/jdsindev/public_html/.htaccess
 

Link to comment
Share on other sites

but if domain address is for example domain.com 

when someone enter there - will see "index of" due to the fact that script is installed in subdirectory

 

now we are trying to move script from /prestashop2/ to root "/"

 

or.. i missed something?

Link to comment
Share on other sites

i confused a bit, i still don't know where we are ;)

what you did? and what you've got now ?

I fix this error- it was wrong base url in shop_url database. Now I disable friendly url in back office and have error 404 (when friendly url is enable im getting error 500)

Not Found

The requested URL /jdsindustrysupply.ie/index.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

 

I also contacted my hosting company regards my error 500 and that is answer :

Thank you for your inquiry, you seem to have set up a circular redirection where your domain redirects to http://jdsindustrysupply.ie/jdsindustrysupply.ie/ which is causing the error

Link to comment
Share on other sites

I fix this error- it was wrong base url in shop_url database. Now I disable friendly url in back office and have error 404 (when friendly url is enable im getting error 500)

Not Found

The requested URL /jdsindustrysupply.ie/index.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

 

I also contacted my hosting company regards my error 500 and that is answer :

Thank you for your inquiry, you seem to have set up a circular redirection where your domain redirects to http://jdsindustrysupply.ie/jdsindustrysupply.ie/ which is causing the error

and thats the error log :

[Mon Feb 10 13:23:47 2014] [error] [client 109.255.174.192] File does not exist: /home/jdsindev/public_html/jdsindustrysupply.ie, referer: http://jdsindustrysupply.ie/admin3536/index.php?controller=AdminMeta&token=8ab8706bc0d105f0632953a6ab460c93

Edited by annajds (see edit history)
Link to comment
Share on other sites

Some temporary Solution found....

I have instal new presta on my root dir and then upload backup of my prestashop2. ( prestashop2 still in my root directory as when I delete it 500 error comes up)

 

Shop is working at the moment, but still will try to do as it should be.

Link to comment
Share on other sites

Can you tell us what your url of your store is, and what you have in the shop_url in the database. 

Hi,

my store url www.jdsindustrysupply.ie and in shop_url database is domain - jdsindustrysupply.ie , domain ssl - jdsindustrysupply.ie and physical url /prestashop2/

Link to comment
Share on other sites

Okay, so you are still using the PrestaShop2 as a subdirectory. 

 

 

First, make sure to backup everything. I would then copy your store to a local just to test. You need to move the files from the subdirectory into your root directory. (Make sure your root directory is blank). After you do that, you can remove what you have in the physical uri. 

Link to comment
Share on other sites

Okay, so you are still using the PrestaShop2 as a subdirectory. 

 

 

First, make sure to backup everything. I would then copy your store to a local just to test. You need to move the files from the subdirectory into your root directory. (Make sure your root directory is blank). After you do that, you can remove what you have in the physical uri. 

I have done that already. I clear my root dir and database, then upload my backup. When I delete my physical uri I got an error

(Warning: strpos() [function.strpos]: Empty delimiter in /home/jdsindev/public_html/classes/Tools.php on line 2195 )

When I changed to my domain I got error 500 and when I disabled friendly url it changed to error 404.

Link to comment
Share on other sites

I have done that already. I clear my root dir and database, then upload my backup. When I delete my physical uri I got an error

(Warning: strpos() [function.strpos]: Empty delimiter in /home/jdsindev/public_html/classes/Tools.php on line 2195 )

When I changed to my domain I got error 500 and when I disabled friendly url it changed to error 404.

 

Have you cleared your htaccess after you deleted the physical uri? it should be in the public_html folder usually. Backup as usual.

 

 

Link to comment
Share on other sites

Okay, so you are still using the PrestaShop2 as a subdirectory. 

 

 

First, make sure to backup everything. I would then copy your store to a local just to test. You need to move the files from the subdirectory into your root directory. (Make sure your root directory is blank). After you do that, you can remove what you have in the physical uri. 

Hi Benjamin,

 

I have done everything as you said. Now on top of my site is

 

Warning: strpos() [function.strpos]: Empty delimiter in /home/jdsindev/public_html/classes/Tools.php on line 2195

 

my tools.php - do i have to change something ?

    $pos = strpos($haystack, $needle);
        if ($pos === false)
            return $haystack;
        return substr_replace($haystack, $replace, $pos, strlen($needle));
    }

Tools.php

Edited by annajds (see edit history)
Link to comment
Share on other sites

 

Hi Benjamin,

 

I have done everything as you said. Now on top of my site is

 

Warning: strpos() [function.strpos]: Empty delimiter in /home/jdsindev/public_html/classes/Tools.php on line 2195

 

my tools.php - do i have to change something ?

    $pos = strpos($haystack, $needle);
        if ($pos === false)
            return $haystack;
        return substr_replace($haystack, $replace, $pos, strlen($needle));
    }

 

you could simply just turn off error reporting, this is a warning nothing more...you can leave errors turned on but change the level of reporting to errors only but not notices/warnings.

Link to comment
Share on other sites

you could simply just turn off error reporting, this is a warning nothing more...you can leave errors turned on but change the level of reporting to errors only but not notices/warnings.

Great !! Thank you :) almost done.... but my website has miss all photos its just text( www.jdsindustrysupply.ie)

would you know how to fix that ?

Link to comment
Share on other sites

ave maria pues...(omg in Colombian Spanish)...the thread of our nightmares...jaja...chin up!  not all is lost!

 

I asked selectshop.at to come take a look at this...as I am gone for a few hours....

 thank you, I will be here.... waiting.... :)

Link to comment
Share on other sites

Sorry, I read ElPatron's messange only now. It ssems that problem is solved ?

 

Another thing: What I can see of the error-list, is that you are running in /root also another software. 404.shtml for ex. is not a Prestashop software. If you are running also another software in the root, you should adapt the .htaccess of that software to don't jam into other software.

 

Deactivate all .htaccess you are having in root, if your shop is already moved to the root.

 

Did you made some redicrection of URL on cPanel ? If yes, undo the redirections

Edited by selectshop.at (see edit history)
  • Like 1
Link to comment
Share on other sites

Sorry, I read ElPatron's messange only now. It ssems that problem is solved ?

 

Another thing: What I can see of the error-list, is that you are running in /root also another software. 404.shtml for ex. is not a Prestashop software. If you are running also another software in the root, you should adapt the .htaccess of that software to don't jam into other software.

 

Deactivate all .htaccess you are having in root, if your shop is already moved to the root.

 

Did you made some redicrection of URL on cPanel ? If yes, undo the redirections

Hello,

 

Thank you for your advice. At the start I had 2 prestashop on my root dir. now its only one and thats only software im running from root dir.

 

Many thanks again to all for helping with my problem.

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