Welcome Guest, Not a member yet? Register   Sign In
Trailing slashes
#5

[eluser]Daniel Moore[/eluser]
The second link you posted, which you stated is the same problem as yours but does not fix it, is understandable why it doesn't fix it.

The first rewrite has the L modifier:
Code:
RewriteRule        ^(.+[^/])$               $1/  [R,L]

The L modifier tells Apache that this is the LAST rewrite rule to handle, and not to handle any further rewrites. That should be removed here, so that the next conditions and rewrite can be properly handled. All this one does is check to see if someone tried to access an invalid file or directory (hence a CodeIgniter URL), then checks to see if it is missing the trailing slash, then adds the trailing slash if missing. It forces the trailing slash for all CodeIgniter URLS.

It's the second one you're interested in here:
Code:
RewriteRule     ^(.*)$                     /index.php/$1/    [L]

Notice what this one does is handles the rewrite WITH the trailing slash at the end of the URL. This is what you need, however, I would recommend changing the [L] to [L,NC,QSA] and see if that clears up your problem.

In case that doesn't work, then please post an example of your view showing how you handle the link to your CSS and a link to an image that does not work. There is really no reason the CSS and images should be a problem if you are using this .htaccess, and, if it is, then it may be a problem with the way you are linking. Please provide us with an example so we can help further.


Messages In This Thread
Trailing slashes - by El Forum - 05-15-2009, 04:09 PM
Trailing slashes - by El Forum - 05-15-2009, 07:44 PM
Trailing slashes - by El Forum - 05-15-2009, 08:38 PM
Trailing slashes - by El Forum - 05-16-2009, 05:38 AM
Trailing slashes - by El Forum - 05-16-2009, 05:58 AM
Trailing slashes - by El Forum - 05-16-2009, 07:42 AM
Trailing slashes - by El Forum - 05-16-2009, 10:54 AM
Trailing slashes - by El Forum - 05-16-2009, 11:30 AM
Trailing slashes - by El Forum - 05-16-2009, 12:08 PM
Trailing slashes - by El Forum - 05-16-2009, 02:40 PM
Trailing slashes - by El Forum - 05-16-2009, 03:39 PM
Trailing slashes - by El Forum - 05-16-2009, 03:49 PM
Trailing slashes - by El Forum - 05-16-2009, 03:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB