.htaccess trouble |
[eluser]dennismonsewicz[/eluser]
In my htaccess file I am stripping out not only the index.php from the URL but I am also stripping out another piece of the URL to make everything work as it should. I have introduced a folder inside of my controller directory and with the way my htaccess file is setup, I cannot access those files in that directory. Code: <IfModule mod_rewrite.c> I have no idea how to tell my htaccess file to read out of the admin folder... any ideas?
[eluser]Sean Gates[/eluser]
You need to check for a directory name as well using !-d in the RewriteCond. Like so: Code: <IfModule mod_rewrite.c>
[eluser]dennismonsewicz[/eluser]
When I do your suggestion I receive a 500 internal server error
[eluser]Sean Gates[/eluser]
Try: Code: RewriteCond %{REQUEST_FILENAME} !-fd ... and let me know. -d is the identifier for a directory. Per this document: http://httpd.apache.org/docs/1.3/mod/mod...ewriteCond
[eluser]Sean Gates[/eluser]
Actually, try: Code: RewriteCond %{REQUEST_FILENAME} !-f
[eluser]InsiteFX[/eluser]
If your running on Windows localhost you need to change the .htaccess file from this. Code: <IfModule mod_rewrite.c> To this: Code: <IfModule mod_rewrite.so> Notice the change from .c to .so. InsiteFX
[eluser]dennismonsewicz[/eluser]
[quote author="Sean Gates" date="1270697733"]Actually, try: Code: RewriteCond %{REQUEST_FILENAME} !-f Ok... so if I go to: http://myurl.dev/admin/authorize (.dev is my virtual host address) I get a 404 CI error... but if I go to: http://myurl.dev/index.php?/admin/authorize everything works like it should... Any thoughts there? Updated .htaccess file Code: <IfModule mod_rewrite.c>
[eluser]danmontgomery[/eluser]
Have you tried changing the value of $config['uri_protocol'] in config.php? |
Welcome Guest, Not a member yet? Register Sign In |