By kwintoo on
Hi
I made my drupal site in subfolder and of course all the urls contain this folder. So than I moved mysite to public folder but its not working properly. Drupal folder is still required to display all pages. I read that there is no base_url option in drupal 8 and all should be done automatically. link Its turned out not that easy. Of course I tried to edite both settings.php and .htaccess but with no positive ending. What should I do more? Please help.
Comments
=-=
What is set as the server document root?
Did you clear drupal cache?
Is rewrite base set in .htaccess?
1. DirectoryIndex index.php
1. DirectoryIndex index.php index.html index.htm
2. When drupal folder is not available I cant do it. Nothing except main page ( also "configuration") available ("page not found").
3. I tried many different settings in .htaccess also rewrite base (/drupal). But as I understand it should work when whole drupal is in own subfolder (drupal)? Anyway I tried it in both cases with no result.
=-=
1. server doc root on your server. not the directory index from .htaccess. Is the document root pointing to the subfolder? - likely moot now any way.
2. you can clear them manually in the database. Utilize the selection 'empty'
1. I think it must be main
1. I think it must be main public folder. I have no accessability to php configuration files but index.php must be in main folder to open my site.
2. I have 13 cache folders in my database (cachetags, cache_bootstrap.....cache_toolbar). Should I clear all of them?
Check RewriteBase in .htaccess
Hopefully you moved that up as well. To make it work in your drupal folder you had to change it to RewriteBase /drupal. Now you moved it up you need to comment it out again or change it to RewriteBase /.
When using $base_url in settings.php you should edit that back to only your domain.