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

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?



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.


Look at the config.php

| 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'] = "";

thank you!!!! worked perfectly.

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

Theme © iAndrew 2016 - Forum software by © MyBB