-2

I just tried a url on my live site and saw this: if ı write my url artisan, for examlple oguzkurukaya.com/artisan

it shows artisan folder or downloads it. How can disable this?

Oğuz Kurukaya
  • 146
  • 1
  • 3
  • 14
  • 1
    It sounds like your website is misconfigured. The document root should point to the public directory, not your main project directory, and there should not be an artisan folder in your public directory. – aynber Jun 15 '21 at 12:23
  • so what should ı do on server.php my folders shows public/$url directory what did ı do wrong – Oğuz Kurukaya Jun 15 '21 at 12:25
  • 1
    You need to update your site configuration file. If you're using nginx, it would be in /etc/nginx/sites-available, if you're using apache, it would be either under /etc/httpd or /etc/apache2. If you're using Windows, you'll have to find the configuration for whichever webserver you're using. – aynber Jun 15 '21 at 12:28

1 Answers1

0

You should set the root path of your website to public folder - which contains index.php file.