CodeIgniter Forums
Valid subdirectory URL 404 Error - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Valid subdirectory URL 404 Error (/showthread.php?tid=9745)



Valid subdirectory URL 404 Error - El Forum - 07-07-2008

[eluser]jplanet[/eluser]
I have installed a third party web php in a subdirectory called generator, which contains an index.php file. If I try to request the valid url like this, I get a 404 error:

http://www.example.com/generator

or

http://www.example.com/generator/index.php


Note that I have the following in my .htaccess file so that url's in Codeigniter can use shorter, SEO-friendly URL's:

Code:
RewriteEngine On
    RewriteBase /

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]

I also tried adding a line for the subdirectory in routes.php, to no avail. I have other similar web applications working in other subdirectories, and they work fine!

Any help is greatly appreciated...


Valid subdirectory URL 404 Error - El Forum - 07-07-2008

[eluser]jplanet[/eluser]
Interesting, I just changed the file permission to 755 for that directory and it worked!