• Resolved davidduncan17

    (@davidduncan17)


    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)
  • This is a Web Config file for Microsoft IIS. Your host probably just wants you to replace ‘domain’ with YOUR actual domain name.

    If you are having trouble with this and are new to WordPress and this is a new hosting account I would ask them to switch it to a linux server (instead of IIS) as it will be easier to install, maintain, and get support. I’m not suggesting one is better than the other just pointing out that it is easier for beginners to work with Linux ??

    Thread Starter davidduncan17

    (@davidduncan17)

    Keith,

    Thanks for that I will give it a go

    Thread Starter davidduncan17

    (@davidduncan17)

    Hi, just an update

    Only once I used Filezilla and deleted the original WordPress Installation and all the files and loaded it into a different directory did it work. I have no idea why it took 123-Reg so many attempts to give me this final easy to use piece of advice? But now, just as I was about to abandon ship I have it all working….all hail Percy Verence!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘First Installation’ is closed to new replies.