6 Aralık 2014 Cumartesi

PHP Fat Free Framework'ü Apache'de Subfolder'da kurmak için örnek .htaccess Dosyası



# Enable rewrite engine and route requests to framework


RewriteEngine On


# Some servers require you to specify the `RewriteBase` directive


# In such cases, it should be the path (relative to the document root)


# containing this .htaccess file


#


RewriteBase /dizin_ismi/


RewriteRule ^(lib|tmp)\/|\.(ini|php)$ - [R=404]


RewriteCond %{REQUEST_FILENAME} !-l


RewriteCond %{REQUEST_FILENAME} !-f


RewriteCond %{REQUEST_FILENAME} !-d


RewriteRule .* /dizin_ismi/ [L,QSA]


RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]



Hiç yorum yok:

Yorum Gönder