.htaccess not working in Windows Server

Posted on 2009-05-01
Last Modified: 2012-05-06

I have moved my website from LINUX Server to Windows Server, everything is working fine except the .htaccess.

I'm getting file not found on all links, see attached the .htaccess content.

Should I enable something specific on the server to make it work, I I just enable ISAPI rewrite.

Please help, I have no experience with Windows Server.

RewriteEngine On

	RewriteCond %{REQUEST_URI} categories.*

	RewriteCond %{REQUEST_FILENAME} !-f

	RewriteCond %{REQUEST_FILENAME} !-d 

	RewriteRule ^categories(.*)$ categorie.php?$1 [T=application/x-httpd-php,L]

	RewriteCond %{REQUEST_URI} articles.*

	RewriteCond %{REQUEST_FILENAME} !-f

	RewriteCond %{REQUEST_FILENAME} !-d

	RewriteRule ^articles(.*)$ article.php?$1 [T=application/x-httpd-php,L]

	RewriteCond %{REQUEST_URI} pages.*

	RewriteCond %{REQUEST_FILENAME} !-f

	RewriteCond %{REQUEST_FILENAME} !-d 

	RewriteRule ^pages(.*)$ page.php?$1 [T=application/x-httpd-php,L]

	RewriteCond %{REQUEST_URI} blogs.*

	RewriteCond %{REQUEST_FILENAME} !-f

	RewriteCond %{REQUEST_FILENAME} !-d 

	RewriteRule ^blogs(.*)$ blog.php?$1 [T=application/x-httpd-php,L]

	RewriteCond %{REQUEST_URI} search.*

	RewriteCond %{REQUEST_FILENAME} !-f

	RewriteCond %{REQUEST_FILENAME} !-d 

	RewriteRule ^search(.*)$ searc.php?$1 [T=application/x-httpd-php,L]

	RewriteCond %{REQUEST_URI} authors.*

	RewriteCond %{REQUEST_FILENAME} !-f

	RewriteCond %{REQUEST_FILENAME} !-d 

	RewriteRule ^authors(.*)$ author.php?a=$1 [T=application/x-httpd-php,L]

	RewriteCond %{REQUEST_URI} articlerss.*

	RewriteCond %{REQUEST_FILENAME} !-f

	RewriteCond %{REQUEST_FILENAME} !-d 

	RewriteRule ^articlerss(.*)$ articlers.php?$1 [T=application/x-httpd-php,L]

	RewriteCond %{REQUEST_URI} news.*

	RewriteCond %{REQUEST_URI} !newsrss

	RewriteCond %{REQUEST_FILENAME} !-f

	RewriteCond %{REQUEST_FILENAME} !-d 

	RewriteRule ^news(.*)$ new.php?$1 [T=application/x-httpd-php,L]

Open in new window

Question by:Fernanditos
    1 Comment
    LVL 42

    Accepted Solution

    ISAPI Rewrite doesn't use .htaccess files. Only Apache uses them.

    ISAPI Rewrite uses httpd.ini instead.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    I had a question today where the user wanted to know how to delete an SSL Certificate, so I thought that I would quickly add this How to! Article for your reference. WHY WOULD YOU WANT TO DELETE A CERTIFICATE? 1. If an incorrect certificate was …
    You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
    This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
    To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now