Announcement

Collapse
No announcement yet.

Windows Server 2012 PHP URL Rewrite issues?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Windows Server 2012 PHP URL Rewrite issues?

    Hi,

    I'm new to PHP URL Rewrite on windows server (well and in general!!) and am trying to change my url from:

    mydomain.com/page.php?ID=116

    to something like:

    mydomain.com/gallery

    I have tried doing it with .Aspx using windows MSDN tutorials and it worked but can't seem to get it to work on PHP. Below is the code ive been trying to do:


    Code:
    <?xml version="1.0" encoding="utf-8" ?>
    
    <configuration>
    
    <system.webServer>
    
    <rewrite>
      <rules>
        <rule name="Rewrite to page.php">
          <match url="^page/([0-9]+)" />
          <action type="Rewrite" url="page.php?ID={R:1}" />
        </rule>
      </rules>
    </rewrite>
    
    </system.webServer>
    
    </configuration>
    Can anyone advise please?

    Kind Regards
    Joe
Working...
X