• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.