Step 1 : Edit the configuration file to give the permission to override default settings. sample:<\/p>\n Step 2: Enable module rewrite Step 3: Restart apache server sample .htaccess:<\/p>\n N.B: Don’t forget to press Enter once at the end of the htaccess file.Because Newline represents the end of file.<\/p>\n SELF NOTE<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":" Step 1 : Edit the configuration file to give the permission to override default settings. command: sudo nano \/etc\/apache2\/sites-available\/default Change the value of AllowOverride to ‘All’ from ‘none’ sample: ServerAdmin webmaster@localhost DocumentRoot \/var\/www Options FollowSymLinks AllowOverride All<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0},"categories":[18],"tags":[19,21,22,49,51,72,76,101,106,112,113,115,116,132],"_links":{"self":[{"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=\/wp\/v2\/posts\/228"}],"collection":[{"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=228"}],"version-history":[{"count":2,"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=\/wp\/v2\/posts\/228\/revisions"}],"predecessor-version":[{"id":343,"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=\/wp\/v2\/posts\/228\/revisions\/343"}],"wp:attachment":[{"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
\ncommand: sudo nano \/etc\/apache2\/sites-available\/default<\/code>
\nChange the value of AllowOverride to ‘All’ from ‘none’<\/p>\n\r\n
\ncommand: sudo a2enmod rewrite<\/code><\/p>\n
\ncommand: sudo service apache2 restart <\/code><\/p>\n
RewriteEngine on\r\nRewriteCond $1 !^(index.php|images|robots.txt)\r\nRewriteRule ^(.*)$ \/index.php\/$1 [L]\r\n<\/pre>\n