CodeIgniter Forums
.htaccess issues - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: .htaccess issues (/showthread.php?tid=9863)



.htaccess issues - El Forum - 07-10-2008

[eluser]Unknown[/eluser]
OK, so I use .htaccess to remove the index.php from the URL.
The installation is in /home/username/public_html/

This is the .htaccess code:
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|dev|image|include|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

In the condition statement, it is set to bypass the index.php for the dev, image, and include directories. It works great for the image and include directories, but it is still routing the dev sub directory to the index.php, giving me a 404 because there is no controller named "dev".

Any help would be greatly appreciated.

Keith


.htaccess issues - El Forum - 07-11-2008

[eluser]Unknown[/eluser]
Looks like the issue is the authentication in the .htaccess file in the dev folder.
When I remove the authentication from the .htaccess file, the redirects in the .htaccess file in the parent directory work as they should.

Anyone know why authentication would cause this? I'd like to keep authentication on.