Welcome Guest, Not a member yet? Register   Sign In
adding url suffix
#1

[eluser]jairoh_[/eluser]
i want to add .html in my pages. why does this doesn't work? tnx. Big Grin
Code:
$config['url_suffix'] = '.html';
#2

[eluser]Ckirk[/eluser]
You might be misunderstanding what this does. It doesn't rewrite your URL and add ".html".
Instead it rewrites any generated URLs.
eg:
Code:
echo site_url('test/xx');
// produces "http://yourdomain/test/xx.html"

It also strips off the ".html" when reading the request. for eaxmple if you have pagination it will still understand ""http://yourdomain/test/xx/page/4.html""

Hope that makes sense




Theme © iAndrew 2016 - Forum software by © MyBB