简体   繁体   中英

Is there a way remove index.php in Laravel without changing .htaccess

In our production server they have disabled .htaccess file to load in apache configuration for some security reasons, due to this all the URL's are added with index.php in addition.

Problem image url and curl request is not properly working due to the index.php added in addition to the url.

Is there are other way to do this.Even if I correct the CURL request It will help me.

You may need to check if there is DirectoryIndex configuration added to the virtual host configuration for your production server. If not try to add the following:

DirectoryIndex index.php index.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM