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

[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
#2

[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.




Theme © iAndrew 2016 - Forum software by © MyBB