Welcome Guest, Not a member yet? Register   Sign In
.htaccess and trailing slash
#1

[eluser]sehummel[/eluser]
In my config file, I have:

Code:
$config['url_suffix'] = "/";

Here is my .htaccess:

Code:
Options +FollowSymLinks
Options -Indexes
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]

When I load a page, I don't get the trailing slash. I am using URI routing, but even when I go to the actual path of the controller/view, I still don't get the trailing slash.

What am I doing wrong? I tried removing the slash after the .php in the last line of the .htaccess, but that didn't do it.

Even if I add ".html" as my URL suffix, it doesn't get added. And that's not in my .htaccess.


Messages In This Thread
.htaccess and trailing slash - by El Forum - 12-30-2010, 05:15 PM
.htaccess and trailing slash - by El Forum - 12-31-2010, 08:26 AM
.htaccess and trailing slash - by El Forum - 12-31-2010, 10:15 AM
.htaccess and trailing slash - by El Forum - 12-31-2010, 02:32 PM
.htaccess and trailing slash - by El Forum - 12-31-2010, 02:55 PM
.htaccess and trailing slash - by El Forum - 01-04-2011, 09:53 AM
.htaccess and trailing slash - by El Forum - 01-04-2011, 10:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB