Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

installing hoosk on subfolder #21

Closed
srok opened this issue Feb 7, 2017 · 5 comments
Closed

installing hoosk on subfolder #21

srok opened this issue Feb 7, 2017 · 5 comments

Comments

@srok
Copy link

srok commented Feb 7, 2017

I'm trying to install hoosk on a subfolder in my site www.example.com/subfolder but links on the admin menu point to www.example.com/admin. Is there a configuration to fix this?

@danielteixeirati
Copy link

@srok, Hoosk must be installed in the web root, it will not function from a sub directory

@srok
Copy link
Author

srok commented Feb 7, 2017

If I add <?php echo BASE_URL; ?> to all the broken links and form actions do you think it might work?

@danielteixeirati
Copy link

danielteixeirati commented Feb 7, 2017

You can install on subdomain, I think this alternative is most appropriate.

@havok89
Copy link
Owner

havok89 commented Feb 7, 2017

Installing on a subdomain is the best way.

It is possible with a workaround to get CodeIgniter to work in a sub directory, but there is an issue with links in the admin header file which need sorted for this to work. I did forget about this issue in the last update but will sort for the next one

@srok
Copy link
Author

srok commented Feb 7, 2017

I fix every issue changing every link on js and php.
Now everything is working.
For some specific proccess where $_SERVER['DOCUMENT_ROOT'] where used I change it to:
$_SERVER['DOCUMENT_ROOT'].SUBFOLDER a Constant that was added to config.php
Also in javascript a global variable with BASE_URL in it comes handy for files uploads.

If you like I can send you my code. I did it all today with the last source from the repo.

@havok89 havok89 closed this as completed Mar 6, 2017
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants