Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add an extension name to a codeigniter route

Is there anyway to put an extension name to a codeigniter route, for example like (.html, .php), ive read the documention about routing and is seems that they dont have that kind of feature.

i just want my route to look like this

https://localhost/project/route.php

any ideas?

Thank you.

like image 215
Jimmy.B Avatar asked Dec 28 '25 13:12

Jimmy.B


1 Answers

Just modify this in config.php.

$config['url_suffix'] = '.html'; //or .php 
like image 52
Md Mahfuzur Rahman Avatar answered Dec 31 '25 02:12

Md Mahfuzur Rahman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!