WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] First Installation (4 posts)

  1. davidduncan17
    Member
    Posted 10 months ago #

    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="http://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="http://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>
  2. Keith Driscoll
    Member
    Posted 10 months ago #

    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 :)

  3. davidduncan17
    Member
    Posted 10 months ago #

    Keith,

    Thanks for that I will give it a go

  4. davidduncan17
    Member
    Posted 10 months ago #

    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!

Reply

You must log in to post.

About this Topic