Link to home
Start Free TrialLog in
Avatar of Eduardo Fuerte
Eduardo FuerteFlag for Brazil

asked on

Could you point how to change the default folder where my site starts?

Hi Experts

Could you point how to change the default folder where my site starts?

My PHP IDE  (and also Filezilla)  maps the FTP folders accordingly to:

User generated image
User generated image
Instead of directly to public_html - accordingly to cPanel  Folder Manager:

User generated image


Since I'm going to necessarily to work from this folder, I have to redirect my site do this folder

So
www.espiriplug.com.br  must necessarily to  redirect to  http://www.espiriplug.com.br/espiriplug/

I guess something else must to be done at my .htaccess to get it done

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    RewriteEngine On

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    
    RewriteRule ^(.*)/$ /$1 [L,R=301]
    
    #RewriteRule ^(.*)$ https://espiriplug.com.br/$1 [R,L]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

Open in new window


Could you suggest what must to be done and if possible any other suggestion to workaround it (like how to change the folder where Mozilla start reading to public_html) ?

Thanks in advance!
SOLUTION
Avatar of Olaf Doschke
Olaf Doschke
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Eduardo Fuerte

ASKER

Sometimes problems arises just because incorrect FTP configurations is done at cPanel.

After support, things became clear!