Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 891241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T13:51:30+00:00 2026-05-15T13:51:30+00:00

I have just bought a new Windows server with IIS on it and plesk

  • 0

I have just bought a new Windows server with IIS on it and plesk panel. Good times (I thought…)

I have about 10 client sites that run on PHP which shouldn’t be a problem. But I can’t seem to get an answer from my hosting provider on how to get my .htaccess working on the windows server so I’m getting stung for two lots of hosting and don’t know the best way forward.

How do i get my .htaccess rewriting working on windows?

EDIT
I have installed the IIS version 2 of their rewrite module and tried to convert my .htaccess file into a web.config set of rules.

Now my very basic site which uses the zend framework shows a 404 for the homepage (90% of the time) and the other pages to display the site but they all show the homepage.

Any ideas or has anyone had similar problems?

Will post the rules I’m using shortly and the old .htaccess file that used to work.

.htaccess file from linux setup

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

Windows version

<rewrite>
  <rules>
    <rule name="Imported Rule 1" stopProcessing="true">
      <match url="^.*$" />
      <conditions logicalGrouping="MatchAny">
        <add input="{REQUEST_FILENAME}" matchType="IsFile"  />
        <add input="{REQUEST_FILENAME}" matchType="IsDirectory"  />
      </conditions>
      <action type="None" />
    </rule>
    <rule name="Imported Rule 2" stopProcessing="true">
      <match url="^.*$" />
      <action type="Rewrite" url="index.php" />
    </rule>
  </rules>
</rewrite>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T13:51:30+00:00Added an answer on May 15, 2026 at 1:51 pm

    .htaccess files are specific to the Apache web server. They’re not going to do a thing on IIS.

    You’ll need to convert them to a format IIS understands. Here’s a tutorial.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just bought a brand new Lenovo (idealpad) laptop with Windows 7 Home Basic.
Just got a new Windows laptop, installing emacs23 on it. My previous computers have
I've just bought a new computer x64 and intalled windows 7 and Eclipse Helios
I have a neural network written in Erlang, and I just bought a GeForce
I have just inherited a server application, however it seems that the only copy
I have just set up cruise control.net on our build server, and I am
I just bought a new keyboard and mouse (Microsoft Natural Ergonomic Desktop 7000) and
I just bought a new Mac and am running Mac OS X 10.6.4 and
I'm really new to owning a website, I just bought mine today! But, I've
I have just bought a shell access addon to my website and tried to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.