Sunday, 5 June 2016

Remove index.php from codeigniter url placed in subdomain



<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond $1 !^(index\.php|resources|robots\.txt)
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /mop/index.php/$1 [L,QSA]
</IfModule>


Here mop is folder name placed in public_html
public_html/mop/index.php


Note: Replace mop with your folder name
banner
Previous Post
Next Post

0 comments: