Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/default-filters.php on line 1
Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/default-filters.php on line 1
Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/class-wp-theme.php on line 1
Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/class-wp-theme.php on line 1
Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/class-wp-styles.php on line 1
Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/class-wp-styles.php on line 1
Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/rest-api/class-wp-rest-request.php on line 1
Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/rest-api/class-wp-rest-request.php on line 1
Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php on line 1
Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php on line 1
Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php on line 1
Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php on line 1
Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php on line 1
Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php on line 1
Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/block-supports/duotone.php on line 1
Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/block-supports/duotone.php on line 1
Warning: Cannot modify header information - headers already sent by (output started at /home/ujjal/public_html/blog/wp-includes/default-filters.php:1) in /home/ujjal/public_html/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1768
Warning: Cannot modify header information - headers already sent by (output started at /home/ujjal/public_html/blog/wp-includes/default-filters.php:1) in /home/ujjal/public_html/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1768
Warning: Cannot modify header information - headers already sent by (output started at /home/ujjal/public_html/blog/wp-includes/default-filters.php:1) in /home/ujjal/public_html/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1768
Warning: Cannot modify header information - headers already sent by (output started at /home/ujjal/public_html/blog/wp-includes/default-filters.php:1) in /home/ujjal/public_html/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1768
Warning: Cannot modify header information - headers already sent by (output started at /home/ujjal/public_html/blog/wp-includes/default-filters.php:1) in /home/ujjal/public_html/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1768
Warning: Cannot modify header information - headers already sent by (output started at /home/ujjal/public_html/blog/wp-includes/default-filters.php:1) in /home/ujjal/public_html/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1768
Warning: Cannot modify header information - headers already sent by (output started at /home/ujjal/public_html/blog/wp-includes/default-filters.php:1) in /home/ujjal/public_html/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1768
Warning: Cannot modify header information - headers already sent by (output started at /home/ujjal/public_html/blog/wp-includes/default-filters.php:1) in /home/ujjal/public_html/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1768
{"id":228,"date":"2013-08-13T00:29:55","date_gmt":"2013-08-12T18:29:55","guid":{"rendered":"http:\/\/ujjalruet.wordpress.com\/?p=228"},"modified":"2015-02-14T10:25:00","modified_gmt":"2015-02-14T10:25:00","slug":"removing-index-php-from-url-of-codeignitor-project-using-htaccess-file","status":"publish","type":"post","link":"http:\/\/blog.ujjal.net\/?p=228","title":{"rendered":"Removing index.php from url of CodeIgnitor project | Using .htaccess file"},"content":{"rendered":"Step 1 : Edit the configuration file to give the permission to override default settings.
\ncommand: sudo nano \/etc\/apache2\/sites-available\/default<\/code>
\nChange the value of AllowOverride to ‘All’ from ‘none’<\/p>\n
sample:<\/p>\n
\r\n\r\n ServerAdmin webmaster@localhost\r\n\r\n DocumentRoot \/var\/www\r\n \r\n Options FollowSymLinks\r\n AllowOverride All <- HERE\r\n <\/Directory>\r\n \r\n Options Indexes FollowSymLinks MultiViews\r\n AllowOverride All <- HERE\r\n Order allow,deny\r\n allow from all\r\n <\/Directory>\r\n\r\n ScriptAlias \/cgi-bin\/ \/usr\/lib\/cgi-bin\/\r\n \r\n AllowOverride None\r\n Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch\r\n Order allow,deny\r\n Allow from all\r\n <\/Directory>\r\n\r\n ErrorLog ${APACHE_LOG_DIR}\/error.log\r\n\r\n # Possible values include: debug, info, notice, warn, error, crit,\r\n # alert, emerg.\r\n LogLevel warn\r\n\r\n CustomLog ${APACHE_LOG_DIR}\/access.log combined\r\n\r\n Alias \/doc\/ \"\/usr\/share\/doc\/\"\r\n \r\n Options Indexes MultiViews FollowSymLinks\r\n AllowOverride None\r\n Order deny,allow\r\n Deny from all\r\n Allow from 127.0.0.0\/255.0.0.0 ::1\/128\r\n <\/Directory>\r\n\r\n<\/VirtualHost>\r\n<\/pre>\nStep 2: Enable module rewrite
\ncommand: sudo a2enmod rewrite<\/code><\/p>\n
Step 3: Restart apache server
\ncommand: sudo service apache2 restart <\/code><\/p>\n
sample .htaccess:<\/p>\n
RewriteEngine on\r\nRewriteCond $1 !^(index.php|images|robots.txt)\r\nRewriteRule ^(.*)$ \/index.php\/$1 [L]\r\n<\/pre>\nN.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":"http:\/\/blog.ujjal.net\/index.php?rest_route=\/wp\/v2\/posts\/228"}],"collection":[{"href":"http:\/\/blog.ujjal.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.ujjal.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.ujjal.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.ujjal.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=228"}],"version-history":[{"count":2,"href":"http:\/\/blog.ujjal.net\/index.php?rest_route=\/wp\/v2\/posts\/228\/revisions"}],"predecessor-version":[{"id":343,"href":"http:\/\/blog.ujjal.net\/index.php?rest_route=\/wp\/v2\/posts\/228\/revisions\/343"}],"wp:attachment":[{"href":"http:\/\/blog.ujjal.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.ujjal.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=228"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.ujjal.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}