• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1228
  • Last Modified:

.htaccess not working in Windows Server

Hi,

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.

Thanks.
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

0
Fernanditos
Asked:
Fernanditos
1 Solution
 
David S.Commented:
ISAPI Rewrite doesn't use .htaccess files. Only Apache uses them.

ISAPI Rewrite uses httpd.ini instead.

Reference: http://www.isapirewrite.com/docs/#conffile
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Tackle projects and never again get stuck behind a technical roadblock.
Join Now