2013-06-03 83 views
1

我刚刚在我的共享1and1主机上安装了oxwall(oxwall.org),并希望从所有网址中删除“index.php”。从Oxwall网址中删除index.php

本质PHP需要看到这个 http://site.com/index.php/Page/Param1/Param2

虽然我希望用户看到这个 http://site.com/Page/Param1/Param2

我明白这应该使用.htaccess文件来实现,但我不” t知道该怎么做...

目前,.htaccess文件看起来像这样:

Options +FollowSymLinks 
RewriteEngine On 

AddEncoding gzip .gz 
AddEncoding gzip .gzip 
<FilesMatch "\.(js.gz|js.gzip)$"> 
    ForceType text/javascript 
</FilesMatch> 
<FilesMatch "\.(css.gz|css.gzip)$"> 
    ForceType text/css 
</FilesMatch> 

RewriteCond %{HTTP_HOST} !oxwall.(host).com$ 

RewriteCond %{REQUEST_URI} !^/index\.php 
RewriteCond %{REQUEST_URI} !/ow_updates/index\.php 
RewriteCond %{REQUEST_URI} !/ow_updates/ 
RewriteCond %{REQUEST_URI} !/ow_cron/run\.php 
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$ [NC] 
RewriteRule (.*) index.php 

有什么建议吗? 我在stackoverflow上发现了类似的消息,但我无法将建议的修复应用于我的.htaccess文件...

非常感谢您的时间和支持!

回答