I accidentally deleted .htaccess file and my site is not opening now

Iknow1thing

Registered
Feb 14, 2013
2
0
1
cPanel Access Level
Website Owner
Hello Forum gurus

domain.com/wp-admin was not working and I randomly read internet saying deleting .htaccess file will fix the problem. With out creating a backup I deleted the file.:(

Now what should I do to get back my site to normal.
Thanks in advance.
 
Last edited by a moderator:

Infopro

Well-Known Member
May 20, 2003
17,075
524
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
If it was customized, you'll need to grab it from a backup, if possible.

If it was never touched, you should be able to download a copy of wordpress from the wordpress.org site and extract the .htaccess from that and upload to your public_html directory I believe.