Reply
Master User
abirhasan
Posts: 143
Registered: ‎21-05-2012
0

Web.Config to .htaccess

Can you help convert the web.config file to .htaccess?

 

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <directoryBrowse enabled="false" />
        <defaultDocument>
            <files>
                <clear />
                <add value="index.php" />
            </files>
        </defaultDocument>
		<rewrite>
            <rules>
                <rule name="Sitemap">
                  <match url="^sitemap.xml" />
                   <conditions>
                       <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                       <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                   </conditions>
                <action type="Rewrite" url="/sitemap/sitemap.php" />
                </rule>
				<rule name="Index">
                  <match url="^(.*)?$" />
                   <conditions>
                       <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                       <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                   </conditions>
                <action type="Rewrite" url="index.php/{R:1}" />
                </rule>
			</rules>
		</rewrite>
    </system.webServer>
</configuration>

 Thanks