IIS göre .htaccess olusturabilirsiniz dikatinizi cekmedimi? sef kurdukdan sonra gerekli ayarların nasıl yapılacıgına dair bir yardım metni cıkmakda artio joomla sef in son sürümünü kurdugunuzda yazmaktadır![]()
Kod:Configuring IIS Since JoomSEF 1.3.2, support for IIS servers has been retested and updated. JoomSEF has been succesully tested on IIS5 and IIS6. As the installation process is rather complex, we provide just the basic steps and hints here. If you have problems setting this up, please contact our support team (please note that the support is a paid service). Configure PHP as ISAPI filter In your IIS website configuration, configure PHP to run as ISAPI filter. (recommended) Install ISAPI Rewrite Filter To make JoomSEF work on your IIS, you will further need a rewrite component similar to mod_rewrite to Apache. There is several of them available, both free or commercial. Staying with free solutions, it works e.g. with ISAPI_Rewrite Lite. From the others IISRewrite or SAPI_Rewrite Full should be ok. We have also tested it with IIRF (Ionic's ISAPI Rewrite Filter) but this one was a bit buggy, although closes to the original Apache's mod_rewrite (hopefully author can fix it soon). Download the choosen component and follow its documentation to install it . Create rewrite rules definition file Create an .ini with rewrite rules for the rewrite components. The name of file and location may differ based on selected rewrite module. For ISAPI_Rewrite the file name is httpd.ini and should be store in the modules install directory. For details for your module check its documentation. The file analogy of the Apache's .htaccess. The rules needed may differ on component choosen, your server configuration and your usage needs. If you are unsure about configuring this (or also any of the previous steps), you may contact our support. In general you may copy the rules from the htaccess.txt file disctributed with Joomla! and adjust them to match the rewrite component possibilities. Please note that every module has a sligtly different set of rules that it supports. (e.g. ISAPI_Rewrite does NOT support %{REQUEST_FILENAME} !-f) and exisitng files need to be checked by other rule. E.g. for every RewritingRule, add [L,U] modifier. If your Joomla! installation is not located in the website root, you will need to add the relative path to all the RewriteRules. (to simulate Apache's RewriteBase setting). If your Joomla! is located directly in the web site root, just add "/" before the index.php in the 2nd part of the RewriteRules. An example configuration for IIRF for the site located in subdirectory /joomla/demo would be following: ########## Begin - Joomla! core SEF Section # RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !^/index.php RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC] RewriteRule /joomla/demo/(.*) /joomla/demo/index.php RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L] # ########## End - Joomla! core SEF Section ########## Begin - Rewrite rules to block out some common exploits ## If you experience problems on your site block out the operations listed below ## This attempts to block the most common type of exploit `attempts` to Joomla! # # Block out any script trying to set a mosConfig value through the URL RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR] # Block out any script trying to base64_encode crap to send via URL RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR] # Block out any script that includes a <script> tag in URL RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR] # Block out any script trying to set a PHP GLOBALS variable via URL RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR] # Block out any script trying to modify a _REQUEST variable via URL RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2}) # Send all blocked request to homepage with 403 Forbidden error! RewriteRule ^(.*)$ index.php [F,L] # ########## End - Rewrite rules to block out some common exploits



LinkBack URL
LinkBacks Hakkında
sorun nedir derseniz siteadi.com
Alıntı

Paylaş