• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
remove index.php from url

#1
How  can i remove index.php from url
Reply

#2
(03-05-2018, 05:59 AM)jyoti sudyal Wrote: How  can i remove index.php from url

https://www.codeigniter.com/user_guide/g...x-php-file
Reply

#3
"https://www.codeigniter.com/user_guide/g...x-php-file"
i have tried this already but its not working at my end.
Reply

#4
The thread was started in the CI2 subforum, suggesting that the answer might be in https://www.codeigniter.com/userguide2/g.../urls.html
Reply

#5
As i mentioned above i have tried this already but this is not working for me.


.htaccess file ::

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]


config file ::
$config['index_page'] = 'index.php';
$config['uri_protocol'] = 'REQUEST_URI';
Reply

#6
If your Apache server has mod_rewrite enabled, you can easily remove this file by using a .htaccess file with some simple rules. Here is an example of such a file, using the “negative” method in which everything is redirected except the specified items:


RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

Same situation happens to me. I have change the code in htaccess file.
Please check with this. Hope it will work for you also.

If it is not work check Please let us know your url is a Https or Http.
Reply

#7
mod_rewrite is enabled by default on godaddy's server and my url is http.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
2 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2018 MyBB Group.