Hello, I have removed my .htaccess file because of some errors from my wordpress site so please provide me a wordpress htaccess demo file or code.
1 Answers
Here I am providing you the simple and basic coding of htaccess file for your wordpress site, just use it on your blog.
BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
END WordPress
Go to your File Manager > Public HTML of web hosting and create a new empty file and give it the name .htaccess and after that copy the above code in it and save the file, thats it.
Your Answer