CodeIgniter Forums

Full Version: Adding URL Suffix Problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]mcxbain[/eluser]
Hello everybody,
I add the URL Suffix to:
$config['url_suffix'] = '.html';

After i get 404 - Not Found

Somebody have an solution ?

redirect('main_controller'); -> http://localhost/main_controller.html -> 404 - Not Found

Thanks

mcxbain

El Forum

[eluser]mcxbain[/eluser]
CI_VERSION 2.0.1
PHP 5.3.3-1ubuntu9.4
LIGHTTPD 1.4.28

El Forum

[eluser]mcxbain[/eluser]
I test it with apache2 and debian. I figured out the problem is the dot.
$config['url_suffix'] = 'html'; -> works
$config['url_suffix'] = '.html'; -> dosent work

when i set the index page to $config['index_page'] = 'index.php' the suffix .html works

But after i dont have a clean url. somebody have a idea ?

mcxbain