My rewrite rule is not working

Posted by DijkeMark on Stack Overflow See other posts from Stack Overflow or by DijkeMark
Published on 2012-06-23T09:09:03Z Indexed on 2012/06/23 9:16 UTC
Read the original article Hit count: 129

Filed under:
|
|

I need to make a rewrite rule for a page, but it does not work. I do have mod_rewrite for apache enabled

This is my .htacces file:

<IfModule mod_rewrite.c>
    RewriteEngine on

    RewriteRule ^gameofthrones/(full|house|characters)\.(all|Stark|Lannister)\.(html|xml|json)$ index.php?output=$3&house=$2&info=$1
</IfModule>

But when I enter this url: localhost/school/str-webservices/eindopdracht/index.php?output=html&house=all&info=full

It stays that way, but it should be something like: localhost/school/str-webservices/eindopdracht/gameofthrones/full/all/html

What am I doing wrong?

Thanks in advance,

Mark

© Stack Overflow or respective owner

Related posts about php

Related posts about .htaccess