WordPress Htaccess Demo File or Code

ForumCategory: WordpressWordPress Htaccess Demo File or Code
John asked 1 week ago

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
Christo answered 1 week ago

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

Accepted file types: txt, jpg, pdf

Add another file