Existing Laravel's project on DirectAdmin server

Posted 5 months ago by ziben69

Hello guys, I neet to upload project on server with DirectAdmin, so I did:

  1. Upload project to public_html
  2. I moved files from the public folder to a level earlier
  3. I put the rest of the files in a different folder.
  4. I changed the paths in index.php
  5. I changed .env file
  6. I changed PHP version on server
  7. .htaccess:
<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews -Indexes

    RewriteEngine On

    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} (.+)/$
    RewriteRule ^ %1 [L,R=301]

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

Index.php works, but subpages no.

I have tried the clear: cache and other commands from web.php Still nothing.

I have error, when I try go to subpages example www.domain.com/contact:

Not Found
The resource requested could not be found on this server!

What more can I do? Thanks so much.

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.