Kodları lütfen aşağıdaki butonları kullanarak renklendirin. Örnek: <php> echo "Selam Dünya"; </php>
Yardım
karakter kaldı

windows server'da htaccess veya web.config


windows serverda htaccesde yapılan seo link çalışmasını web.configde nasıl yapabilirim ?

örnek olarak htaccessde

RewriteRule ^ornek.html$ index.php?a=sayfa.php [NC]

yapılan bir seo link çalışmasını web.configde nasıl yapabilirim ?
+0
-0
Cevaba KatılıyorumKatılmıyorum
Cevap Yaz Yorum Yaz Arşivime Ekle Takip Et

Cevaplar

  • kurtitasarim adlı üyenin fotoğrafı
    11 yıl önce yazılmış
    30 cevap - 9 soru
    http://www.micronovae.com/ModRewrite/articles/CleanPermalinksWordpress.html burayı inceleyebilirsin yada sunucuya erişim yetkin yada kontrol panelinde iis erişim varsa oradan yapabilirsin
    • pl_phe adlı üyenin fotoğrafı pl_phe
      internetde şöyle bir kod buldum benim bu kodun mantığını özmeme gerek, verdiğiniz linkdeki farklı birşey yinede teşekkürederim yardımın için yanlız bu şekilde bir kod üzerinden yapmama gerekiyor.

      <?xml version="1.0" encoding="UTF-8"?>
      <configuration>
      
          <configSections>
              <sectionGroup name="system.webServer">
                  <sectionGroup name="rewrite">
                      <section name="rewriteMaps" overrideModeDefault="Allow" />
                      <section name="rules" overrideModeDefault="Allow" />
                  </sectionGroup>
              </sectionGroup>
          </configSections>
      
          <system.webServer>
              <security>
                  <!--  This section should be uncommented after
                  installation to secure the installation. -->
                  <!--
                  <requestFiltering>
                      <denyUrlSequences>
                          <add sequence="engine" />
                          <add sequence="inc" />
                          <add sequence="info" />
                          <add sequence="module" />
                          <add sequence="profile" />
                          <add sequence="po" />
                          <add sequence="sh" />
                          <add sequence="theme" />
                          <add sequence="tpl(\.php" />
                          <add sequence="Root" />
                          <add sequence="Tag" />
                          <add sequence="Template" />
                          <add sequence="Repository" />
                          <add sequence="code-style" />
                      </denyUrlSequences>
                      <fileExtensions>
                          <add fileExtension=".sql" allowed="false" />
                          <add fileExtension=".pl" allowed="false" />
                      </fileExtensions>
                  </requestFiltering>
                  -->
              </security>
              <directoryBrowse enabled="true" />
              <caching>
                  <profiles>
                      <add extension=".php" policy="DisableCache" kernelCachePolicy="DisableCache" />
                      <add extension=".html" policy="CacheForTimePeriod" kernelCachePolicy="CacheForTimePeriod" duration="14:00:00:00" />
                  </profiles>
              </caching>
              <rewrite>
                  <rules>
                      <rule name="block favicon" stopProcessing="true">
                          <match url="favicon\.ico" />
                          <action type="CustomResponse" statusCode="404" subStatusCode="1" 
                              statusReason="The requested file favicon.ico was not found" 
                              statusDescription="The requested file favicon.ico was not found" />
                      </rule>
                      <rule name="Imported Rule 1" stopProcessing="true">
                          <match url="^(.*)$" ignoreCase="false" />
                          <conditions>
                              <add input="{HTTP_HOST}" pattern="^example\.com$" />
                          </conditions>
                          
                          <action type="Redirect" redirectType="Permanent" url="http://www.example.com/{R:1}" />
                      </rule>
                      <rule name="Imported Rule 2" stopProcessing="true">
                          <match url="^(.*)$" ignoreCase="false" />
                          <conditions>
                              <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
                              <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
                              <add input="{URL}" pattern="^/favicon.ico$" ignoreCase="false" negate="true" />
                          </conditions>
                          <action type="Rewrite" url="index.php?q={R:1}" appendQueryString="true" />
                      </rule>
                  </rules>
              </rewrite>
              <defaultDocument>
                  <files>
                      <remove value="index.php" />
                      <add value="index.php" />
                  </files>
              </defaultDocument>
      
              <!-- HTTP Errors section should only be enabled if the "Error Pages"
              feature has been delegated as "Read/Write" at the Web Server level.
                 <httpErrors>
                     <remove statusCode="404" subStatusCode="-1" />
                     <error statusCode="404" prefixLanguageFilePath="" path="/index.php" responseMode="ExecuteURL" />
                 </httpErrors>
              -->
      
          </system.webServer>
      </configuration>
      
      11 yıl önce yazılmış