Davidnrog
Regular Member
- Apr 21, 2014
- 218
- 32
I'm working on my new website which is facing some canonical error.
I've moved my website to http://www.example.com from (without)example.com by using the code below
(Note :fixed the www and no-www error)
I want my website redirect's, when i type "www.example.com/index.php" to "www.example.com"
"(i.e. I don?t want to have the ?index.php? portion visible in the address)"
Thank's
Please Help..
I've moved my website to http://www.example.com from (without)example.com by using the code below
(Note :fixed the www and no-www error)
I want my website redirect's, when i type "www.example.com/index.php" to "www.example.com"
"(i.e. I don?t want to have the ?index.php? portion visible in the address)"
Code:
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Redirect to WWW" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^example.com$" />
</conditions>
<action type="Redirect" url="http://www.example.com/{R:0}" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Thank's
Please Help..