1

How can I hide index.php in search engines, I think this is my Htaccess Problem, But I dont Know how to fix this . look at this picture please.

enter image description here

Morteza Negahi
  • 3,045
  • 7
  • 21
  • 37

1 Answers1

1

You need to point web server to a public directory instead of project root. Apache config example:

DocumentRoot "/path_to_laravel_project/public"
<Directory "/path_to_laravel_project/public">

Don't forget to restart web server.

Community
  • 1
  • 1
Alexey Mezenin
  • 148,626
  • 22
  • 267
  • 261
  • i'm work in host . how can i reset web server .. sorry i'm beginner – Morteza Negahi Oct 26 '16 at 15:41
  • If you have VDS or dedicated server, you can edit Apache/Nginx config. If you on shared host, you better contact support team and ask this question. https://www.digitalocean.com/community/tutorials/how-to-configure-the-apache-web-server-on-an-ubuntu-or-debian-vps – Alexey Mezenin Oct 26 '16 at 15:43
  • Sorry in shared host i well change the address to /public_html ? and i most change that htacces in laravel public/.htaccess ? – Morteza Negahi Oct 26 '16 at 15:55