如何停止在URL中显示index.php的站点

时间:2016-06-29 07:39:11

标签: php .htaccess https url-redirection

我的网站正在解决两个问题:

https://www.itcontractorsuk.comhttps://www.itcontractorsuk.com/index.php

我可以做什么,以便额外的index.php不会显示在URL中。它只发生在主页上。

1 个答案:

答案 0 :(得分:2)

select 
    case when EventCategory < 0.05 Then 'NOT INCL' ELSE 'OK' END AS Under3Min
from
(
    Select   
    Sum(case when CustomEvent = 'without Stop' then cast(EventEndDateTime - EventStartDateTime as float)*24 else 0 end) as EventCategory
    FROM tDataCategory Where (CustomEvent = 'without Stop' AND cast(EventEndDateTime - EventStartDateTime as float)*24 >=0.05) OR CustomEvent != 'without Stop'
) x 

应该做的伎俩。

把它放在你的.htaccess