Jump to content

Archived

This topic is now archived and is closed to further replies.

sasan223

[Resolved] I accidentally deleted index.php and .htaccess files

Recommended Posts

hi

I accidentally deleted index.php and .htaccess files from file manager of my CPanel now no one can access my site. and 403 forbidden error appears.

What should i do now? do I need to create my site again? please help me!!!!

www.atison.ir

 

111.png

Share this post


Link to post
Share on other sites

Please download the latest version of CubeCart from the Downloads page, extract the index.php file from that package, and upload it to your site.

Share this post


Link to post
Share on other sites

Please download the latest version of CubeCart from the Downloads page, extract the index.php file from that package, and upload it to your site.

I downloaded the latest version and uploaded the file but it doesn't work. :(

now i encounter with the following error

122.png

Share this post


Link to post
Share on other sites

Perhaps you deleted something else without realizing it, like ini.inc.php? Is there anything out of the ordinary about your install? Is your includes/global.inc.php file correct?

Share this post


Link to post
Share on other sites

Generally the answer should have been get these two files from your backups that you and your host had been doing !!  However with these two specific files, as already mentioned they can easily be retrieved unless you had made custom changes to them .  Doesnt work in what way - the same error or something different ?  Have you recreated the .htaccess file as described ?

The error shown can also be thrown by various other causes including mod_security violations - you should seek help from your hosting company

Ian

Share this post


Link to post
Share on other sites

actually the full story is that i create sub domain for my site then i tried to install wordpress for the subdomain but the installation was failed. then when i tried to access my site (not subdomain) there was an error, I checked my file manager and deleted the folders related to wordpress, and accidentally deleted  index.php, .htaccess, ini.inc.php files.  

Share this post


Link to post
Share on other sites

If you have not made any core file changes, then you can simply re-upload all files or any of the missing files if you are certain which ones you deleted from the standard zip file - just simply delete (or dont upload) the setup folder

Share this post


Link to post
Share on other sites

thanks to you, it worked. I uploaded  index.php, .htaccess, ini.inc.php files. and renamed .htaccess to .htaccess_old and reloaded my site and it is back now.

i appreciate your helps. you are so good. 

Share this post


Link to post
Share on other sites

×
×
  • Create New...