# Redirect Issue on Strato

**URL:** https://discourse.getcockpit.com/t/redirect-issue-on-strato/992
**Category:** Support
**Created:** [August 28, 2019, 3:02pm UTC](https://discourse.getcockpit.com/t/redirect-issue-on-strato/992 "2019-08-28T15:02:39Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![raffaelj](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/raffaelj/32/331_2.png) [@raffaelj](https://discourse.getcockpit.com/u/raffaelj)
#### Post date: [August 29, 2019, 9:37am UTC](https://discourse.getcockpit.com/t/redirect-issue-on-strato/992/2 "2019-08-29T09:37:34Z")

</div>

I’m not sure, if I understood your setup correctly…

Do you fetch the data via REST API or do you include the cockpit bootstrap file via php?

Did you setup everything under `example.com/cockpit`, tested everything on `example.com/cockpit/frontend` and then changed `example.com` to point to `/cockpit/frontend`? In this case, cockpit is not public available anymore, but you should be able to include the bootstrap file.

> [@georgj](#):
>
> Is there a proper way to do it via .htaccess

Maybe with setting `RewriteBase`, but I have a setup on strato, where I didn’t need to change it.

> [@georgj](#):
>
> or anything?

You can change some constants for path detection if you add a file `defines.php` to the cockpit root folder.

I use the structure `/frontend/cockpit`, so the setup is a bit different, but maybe you can fiddle with it. Here are some threads with examples for the defines file:

- [Can't access api - #4 by raffaelj](https://discourse.getcockpit.com/t/cant-access-api/221/4)
- [Cockpit in Subfolder and Domain redirect · Issue #704 · agentejo/cockpit · GitHub](https://github.com/agentejo/cockpit/issues/704#issuecomment-405016371)

---

_[View the full topic](https://discourse.getcockpit.com/t/redirect-issue-on-strato/992)._
