在设置新服务器后,我想出了这个问题。当我点击一条路线时,laravel将一个index.php放在localhost之后。例如localhost/index.php/mysite/public/login.
如何删除localhost之后的index.php
?
答案 0 :(得分:0)
确保公共文件夹中包含.htaccess文件,代码如下:
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="ignoreUnresolvablePlaceholders" value="true"/>
<property name="locations">
<list>
<value>classpath:/${environmentName}/*.properties</value>
</list>
</property>
</bean>
default-application.properties
# Application Common Properties
profile.name=dev