First Installation
-
I use 123-Reg as the host for me website. They have given me the following to create a txt file, edit it and save it as a web.config file and then upload it into the content folder.
I want to check where I am to edit the file and that I am editing it correctly. Can someone help me please?
Here is the detail~:-
<configuration> <system.webServer> <rewrite> <rules> <rule name="CanonicalHostNameRule2" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTP_HOST}" pattern="^domain\.com$" /> </conditions> <action type="Redirect" url="https://www.domain.com/{R:1}" /> </rule> <rule name="CanonicalHostNameRule1" stopProcessing="true"> <match url="^(\w*/)?index\.php" /> <conditions> <add input="{HTTP_HOST}" pattern="domain\.com$" /> </conditions> <action type="Redirect" url="https://www.domain.com/{R:1}" /> </rule> <rule name="wordpress" patternSyntax="Wildcard"> <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" /> </rule> </rules> </rewrite> </system.webServer> </configuration>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘First Installation’ is closed to new replies.