Title: mod_rewrite works on linux, but not on windows
Tags: php;mod-rewrite
Question: This rule works well on Linux based machine: 

```RewriteRule ^([^/]*)/([^/]*)$ /index.php?page=$1&amp;id=$2 [L]
```

But on windows based it doesn't. Maybe there is another way to make it work on both systems?

Comment: It's activated, and i thinking the best idea is just change rule...

Comment: The mod_rewrite module in xampp server is disabled by default. search and activate it (remove #) in apache/conf/httpd.conf then restart the apache server.


Here is another answer: It's not depend on OS. I think you used Apache on Linux and now using IIS.

htaccess for IIS is explained here : http://learn.iis.net/page.aspx/557/translate-htaccess-content-to-iis-webconfig/


Here is another answer: What do you mean "it doesn't work" on Windows? I'm pretty sure this is an issue with ```mod_rewrite``` working on your windows setup, and has nothing to do with this particular rule. I'm guessing if you look at ```apache_get_modules()```, you'll see it is not listed.

Comment for this answer: Well, it doesn't, tryed WampServer and xampp. Evene http://localhost/images or http://localhost/javascript or others folders. If i remove that rule from .htaccess everythink works...

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 2, 'CommentCount': 2, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2012:00:08/14/12', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<php><mod-rewrite>', 'Title': 'mod_rewrite works on linux, but not on windows', 'ViewCount': 141, 'id': 11958233, 'user_AboutMe': '<p>PHP, Smarty and ezSQL user.\n<a href="http://z0.lt" rel="nofollow">http://z0.lt</a></p>\n', 'user_AccountId': 301012.0, 'user_DisplayName': 'ZeroSuf3r', 'user_Reputation': 1941.0, 'user_Views': 151.0, 'user_id': 608491.0}}