Welcome Guest, Not a member yet? Register   Sign In
DOCUMENT ROOT
#7

(06-28-2019, 03:57 PM)Pehesis Wrote:
(06-25-2019, 05:18 PM)fogem Wrote: The hosting does not have access to the site configuration to change the "DOCUMENT ROOT". 
Can I get it back like it was?
In the root index.php .
What should I do?

You could use a .htaccess file in the root to point to the /public/ folder

eg.
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^yourdomain.tld$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.yourdomain.tld$
RewriteCond %{REQUEST_URI} !public/
RewriteRule (.*) /public/$1 [L]

so that when you visit yourdomain.tld it will read out of the public folder

No. No. No.

Change the hoster or ask the hoster for help.
Reply


Messages In This Thread
DOCUMENT ROOT - by fogem - 06-25-2019, 05:18 PM
RE: DOCUMENT ROOT - by MGatner - 06-26-2019, 05:32 AM
RE: DOCUMENT ROOT - by fogem - 06-26-2019, 05:46 AM
RE: DOCUMENT ROOT - by MGatner - 06-26-2019, 07:15 AM
RE: DOCUMENT ROOT - by InsiteFX - 06-26-2019, 03:10 PM
RE: DOCUMENT ROOT - by Pehesis - 06-28-2019, 03:57 PM
RE: DOCUMENT ROOT - by Paradinight - 06-28-2019, 11:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB