Welcome Guest, Not a member yet? Register   Sign In
htaccess redirects
#1

So i tried searching the forums and a I was not able to find any help..

I am trying to redirect with htaccess but I keep getting my redirect query string appended to my url.

Here is my htaccess file.

PHP Code:
<IfModule mod_rewrite.c>
 
 RewriteEngine On
  RewriteBase 
/
 
 RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond 
%{REQUEST_FILENAME} !-d
  RewriteRule 
^(.*)$ index.php?/$[L]

 
 Redirect 301 /users/login http://example.local/login
</IfModule

The results I get is

PHP Code:
http://example.local/login?/users/login 

How do I fixed this.. seems like the query string is getting appended to my url.
Reply
#2

Maybe this will help:

Stupid .htaccess Tricks
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB