나는 다음의 .htaccess 파일이 있습니다에 !
지정을 제외한 모든 요청을 리디렉션 :DirectoryIndex에 htaccess로 지시문의 RewriteRules에 의해 무시되고
DirectoryIndex index.html
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 %{REQUEST_URI} .*/http-bind
#RewriteRule (.*) /http-bind [L]
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} !/index\.html
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
나는 그것이 같은 htaccess로에서 다른 모든 작업 할을 index.php
. 그러나 처음으로 사이트가로드 될 때 index.html
을로드해야하며 이후에 계속 index.php
을로드합니다.
그래서 나는 처음에 선 DirectoryIndex index.html
을 추가 한 다음 사용자가 http://url.com
를 입력 할 때, 그들은 그들이 http://url.com/homepage
같은 내부 페이지로 이동합니다있는 index.html 파일로 촬영 바라고, 라인 RewriteCond %{REQUEST_URI} !/index\.html
을 추가하는 것입니다 모든 요청은 index.php
에 의해 처리됩니다.
그러나 이것은 작동하지 않습니다. 사용중인 소프트웨어는 Oxwall입니다. 이 사이트는 단순히 첫 번째 줄을 무시하고 index.php를 계속로드합니다. 이 문제를 해결하려면 어떻게해야합니까? 감사.
감사합니다. 그래, 이건 실제로 가능성이 있지만, 나는 이미 쿠키/세션 조작을 메인 사이트 스크립트에 많이 있기 때문에 그것을 피하고 싶습니다. 그리고 나는 그 논리에 간섭하고있을 것입니다 ... –