Welcome Guest, Not a member yet? Register   Sign In
Adding a .html in the suffix does not do anything
#2

[eluser]Jelmer[/eluser]
Links generated by CI functions like anchor() should include it. Adding the suffix doesn't make CI auto add it to your URLs while accessing them, only through functions.

In my case the requests are accepted only if the include the .html suffix because of my .htaccess:

Code:
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*).html$ /index.php?/$1

And all others throw an error with CI because of these instructions:
Code:
ErrorDocument 404 /error/404.html
ErrorDocument 403 /error/403.html
ErrorDocument 500 /error/500.html
(which are routed by my application to the corresponding error functions in my error controller)


Messages In This Thread
Adding a .html in the suffix does not do anything - by El Forum - 02-06-2009, 07:36 AM
Adding a .html in the suffix does not do anything - by El Forum - 02-06-2009, 07:44 AM
Adding a .html in the suffix does not do anything - by El Forum - 02-06-2009, 08:57 AM
Adding a .html in the suffix does not do anything - by El Forum - 10-19-2010, 09:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB