2013-06-03 2 views
1

공유 된 1and1 호스트에 Oxwall (oxwall.org)을 설치했으며 모든 URL에서 "index.php"를 제거하고 싶습니다. 'Oxwall URL에서 index.php 제거

는 기본적으로 PHP는 내가 사용자가 htaccess로 파일을 사용하여 수행해야합니다 나는 이것을 이해이 http://site.com/Page/Param1/Param2

을보고 싶어하지만이 http://site.com/index.php/Page/Param1/Param2

를 볼 필요,하지만 난 돈 어떻게 해야할지 알고 ...

현재 .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 파일에 적용 할 수 없습니다 ...

시간과 지원에 감사드립니다.

답변

-1

해결책을 찾았습니다! 이 주제에 언급 된 htaccess 코드를 간단히 사용했습니다. http://www.oxwall.org/forum/topic/7924

다른 사람들에게 도움이되기를 바랍니다.

+0

링크 대신 필요한 코드를 추가하십시오. –

관련 문제