Welcome Guest, Not a member yet? Register   Sign In
Redirect Trailing Slashes...Problem
#1

I have 2 problems:

When i call the following URL with a trailing slashe (news is Controller):
http://localhost/ci4/public/news/

It removes the 'root' and 'public' and redirects to :
http://localhost/news

is it a problem or i'm wrong?

And another problem is: in the public/.htaccess and in the Redirect Trailing Slashes section, it does not check if the requested resource is Dir or not
Code:
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]

should we put following line before above?

Code:
RewriteCond %{REQUEST_FILENAME} !-d
Reply
#2

You can see this StackOverflow answer.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB