Accidentally deleted my htaccess file on cpanel - wordpress

I accidentally deleted htaccess file.
I downloaded it before I did so and then afterwards I re-uploaded it to my public_html folder, but I can't get to the WP login anymore. It just gives me a 404 error.
Why doesn't it start working when I just re-upload?

Nevermind, I figured it out. It was simply because when I downloaded the file, the period in front of ".htaccess" was removed. When uploaded, it was still removed. However, I simply edited the file name in cpanel from "htaccess" to ".htaccess" and it started working again.

Related

WordPress: Softaclous - Could not write the Configuration File _htaccess

I am trying to install WordPress on my parent domain in public_html directory. it gives me this every time I try to install.
I tried to delete htaccess as well, changed permissions but nothing works.
I faced same issue and my issue was resolved by changing public_html folder permission to write.
I also faced a similar issue but just edited my file permission for the .htaccess file and try reinstalling WordPress.

I have been getting 403 forbidden error after uploading file from local to server?

After changing file permissions it worked but after 2 days started getting the same error in wordpress. I am working on server I had changed the .htaccess file too but there is no effect.
Delete your .htaccess file and update your permalink structure in admin,
This Snap may be help you

500 Error after changing wordpress prefix

I changed the Wordpress database prefix with iThemes Security from the default wp_, but now it gives always 500 Error at loading the site :-(
I checked the database, and wp-config, and they seem to match, the plug-in changed the prefix correctly, also, I deleted the .htaccess file and removed the plugin from the wp-content folder.
Any idea how could I get the site back?
I carefully checked now my wp-config.php file and it was truncated, missing the end of the file (from languages defining), so I restored it from the sample, and it works now!
It was some mistake while the file was updated on the server (momentary interruption?).
Thanks.

Moving wordpress in server giving 500 internal server error

I have just uploaded all my WP files in server. I have also updated the database. But I am getting internal server error. The url is : www.worldcon2015.in
Try this:
I have got same kind of problem when I moved my WordPress blog but I solved it myself:
Here's what I did:
I renamed .htaccess file to __htaccess
I uploaded an empty file and renamed it to .htaccess
I changed the permissions on .htaccess to 666 (rw-rw-rw)
I set permalinks to a different setting, saved it, then switched it back to my usual setting.
Then I changed the .htaccess file permissions back to 644 (rw-r--r--)
I hope this helps you!!

Wordpress Blank Install Page

I uploaded a freshly downloaded copy of Wordpress 4.2.2 here: http://www.onedayonemillion.com/test/ and all I get is a blank page.
There are no .htaccess or wp-config.php files in the root directory.
No database has been connected yet.
I tried the same in another directory (/dev/) and it did the same.
I have no plugins installed or activated.
This is a fresh copy.
I added an phpinfo file here: http://www.onedayonemillion.com/test/info.php
Why can't I even get the install page to show up?
I didn't understand why there is no wp-config.php in the directory, it would be good you post what is in the directory. Anyway, you can check items like (sometimes it is just that):
some files with no ending "?>" ending the file;
any require_once methods calling non-existing files
(you said no, but) wp-config has wrong or non-set definitions (user, database)
check permissions/ownership to the folder
Well, I know it can be lame, but I had problem with definition in WPLANG define,
so I put an
echo "<br> there is no error until here";
through the files untill I find that was missing a comma at the definition. If the phrase is displayed, your installation files untill that point are working out.
Your phpinfo says the display_errors is off.
modify your php.ini with this line:
display_errors = on
you should restart the server after modification.
you can only track the error only if the error reporting is on in the server

Resources