El Forum
07-29-2014, 06:44 PM
[eluser]Unknown[/eluser]
I have read many posts about this error, and all seem to correct the problem quickly with an htaccess file tweak. I have tried this, but I have a situation where a page in the mfind (mobile find) directory is pointing to all of the code except for the views in another folder (../find) Find works just find, but mfind returns the input file not found error. The following are snippets from the index and htaccess in the mfind directory.
Thanks in advance.
/find
/application
...
/mfind
index.php
...
$system_path = '../find/system';
$application_folder = '../find/application';
$view_folder = 'views';
...
.htaccess
IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /mfind
RewriteCond %{SERVER_PORT} 80
RewriteCond $1 ^(payments|giftcards)
##RewriteRule ^(.*)$ https://mysite.com/mfind/$1 [R=301,L]
RewriteRule ^(.*)$ https://mysite.com/mfind?/$1 [R=301,L]
##redirect www to non-www
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
##RewriteRule ^(.*)$ http://%1/mfind/$1 [R=301,L]
RewriteRule ^(.*)$ http://%1/mfind?/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
I have read many posts about this error, and all seem to correct the problem quickly with an htaccess file tweak. I have tried this, but I have a situation where a page in the mfind (mobile find) directory is pointing to all of the code except for the views in another folder (../find) Find works just find, but mfind returns the input file not found error. The following are snippets from the index and htaccess in the mfind directory.
Thanks in advance.
/find
/application
...
/mfind
index.php
...
$system_path = '../find/system';
$application_folder = '../find/application';
$view_folder = 'views';
...
.htaccess
IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /mfind
RewriteCond %{SERVER_PORT} 80
RewriteCond $1 ^(payments|giftcards)
##RewriteRule ^(.*)$ https://mysite.com/mfind/$1 [R=301,L]
RewriteRule ^(.*)$ https://mysite.com/mfind?/$1 [R=301,L]
##redirect www to non-www
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
##RewriteRule ^(.*)$ http://%1/mfind/$1 [R=301,L]
RewriteRule ^(.*)$ http://%1/mfind?/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>