Welcome Guest, Not a member yet? Register   Sign In
Question about .htaccess -- remove index.php but leave php extension at end of url?
#1

[eluser]Unknown[/eluser]
First off -- I know this is bad practice, but sometimes as we all know, the client wants what the client wants. That being said, is there a way to remove index.php from the url and still have the .php extension at the end?

Example:

http://www.site.com/about/info.php

I want to use codeigniter to make this new site, but they said that there must be .php at the end of the url. Yes I understand the W3C advises against this, but, their demands are their demands.

Thanks!
#2

[eluser]n0xie[/eluser]
Look at the config.php

Code:
/*
|--------------------------------------------------------------------------
| URL suffix
|--------------------------------------------------------------------------
|
| This option allows you to add a suffix to all URLs generated by CodeIgniter.
| For more information please see the user guide:
|
| http://ellislab.com/codeigniter/user-guide/general/urls.html
*/

$config['url_suffix'] = "";
#3

[eluser]Unknown[/eluser]
thank you!!!! worked perfectly.

I thought I was going to have to do 301 re-directs.




Theme © iAndrew 2016 - Forum software by © MyBB