shisotsu I installed flarum on my hosting. All routes on this forum begins with /public/ (https://autosolution/public/sitemap.xml, https://autosolution/public/robots.txt and etc), how I can fix it without reinstalling my forum?
clarkwinkelmann shisotsu follow https://docs.flarum.org/install/#customizing-paths If you have already installed Flarum it will also work, the only difference is to edit the URL in config.php after you make the changes.
shisotsu clarkwinkelmann I tried literally everything. Last time I reinstalled Flarum on my hosting. I move my files from /public to root directory.I changed index.php , site.php, config.php and .htaccess. But when I'm trying to open homepage, I'm redirected to /public... Logs are clear
clarkwinkelmann shisotsu Flarum shouldn't attempt to redirect the visitor, so it's more likely part of your webserver configuration. Did you manually add a redirect to /public at some point and forgot to remove it from the config (virtual host or .htaccess)
shisotsu clarkwinkelmann I didn't it, but what is the name of the command that is responsible for redirect in .htaccess?
clarkwinkelmann shisotsu look for any line that starts with Rewrite in the Apache configuration. Flarum has a few Rewrite line in its .htaccess that should not be removed. You can see what the unmodified file should look like at https://github.com/flarum/flarum/blob/v1.5.0/public/.htaccess . If you recently re-installed Flarum and didn't modify the .htaccess file again you probably still have the original unmodified file with only the correct lines in it. Unless you are using a different webserver like nginx?