Welcome Guest, Not a member yet? Register   Sign In
External app in CI folders
#1

[eluser]skewbie74[/eluser]
Hi

I have an external flash component (purchased) which works with its own php code pages and connects to mysql. I currently have this in a subdomain.

I would like to put it in the CI folders in order to be able to control logging in to the component for admins rather than the app being available by going to subdomain.example.com/component.php

My question is this - is it possible to have this sit in the CI folders and still access it? I have tried but CI obviously thinks I am trying to access a controller when I call one of the php pages so I get a 404 - Page Not Found Error.

I think I'm missing something obvious.

Thanks

Steve
#2

[eluser]Michael Wales[/eluser]
Yes - you just need to alter your .htaccess file to exlude that directory from being rewritten.
#3

[eluser]skewbie74[/eluser]
Hi Michael

Thanks for your reply. I found some info here which has this code to exclude an admin folder:

RewriteEngine on
RewriteCond %{REQUEST_URI} !^/admin

Do I just need the name of the folder (calendar in this case) or do I need the full path to it e.g. /public/admin/calendar ?

Thanks

Steve
#4

[eluser]Pascal Kriete[/eluser]
You only need to include the name of the base folder. Meaning the one 'next to' your index.php.
#5

[eluser]skewbie74[/eluser]
Thanks inparo

Do you mean if I have folder 'calendar' in /calendar along with /system and /index.php I can just use /calendar in the rewrite rule?

cheers

Steve.




Theme © iAndrew 2016 - Forum software by © MyBB