CodeIgniter Forums
Can not rewrite to file using .htaccess ? - error to 404 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Can not rewrite to file using .htaccess ? - error to 404 (/thread-44199.html)



Can not rewrite to file using .htaccess ? - error to 404 - El Forum - 08-07-2011

[eluser]ryantran[/eluser]
Mt structure like this :
- application
- controllers
- log
- login
- mysite

I want to redirect http://mysite/index.php/log/login => mysite/login.html

- I turned on Rewrite Mode
- In my .htaccess :
Code:
Options +FollowSymLinks All -Indexes
RewriteEngine On
RewriteRule ^login.html$ ./index.php/log/login

but, i met 404 error.
I tested by make one file test.php and place it in mysite folder
=> It is ok !
Plz help me congig that url.
Thanks !