我已经看到这个问题在几个网站上提出了他们的解决方案,这对我来说似乎不起作用。
我正在尝试将somesite.com/services.php转换为somesite.com/services
我的.htaccess:
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteCond %{REQUEST_URI} !/$
RewriteRule ^(.*)$ $1\.php
</IfModule>
添加
Options -MultiViews
是大多数人解决问题的方法。这对我没用。
这会在搜索我的services.php文件时出现问题,在复制.com的路径后查看目录位置
/somesite.com/somesite.com/services.php
The requested URL /somesite.com/somesite.com/services.php was not found on this server.
我觉得这是一个简单的修复。我希望stackoverflow军队可以纠正我的错误。
谢谢。
答案 0 :(得分:0)
使用此
adaptermoshtari = new AdapterMoshtariItem(moshtariItems,txtMoshtariName,txtInfoMoshtariTel,txtInfoMoshtariMob);
lstMoshtari.setAdapter(adaptermoshtari);
可能重复