I found some good text about mod rewrite here: http://forum.modrewrite.com/viewforum.php?f=12
It said something about that you could get into a infinite loop if you do wrong and the server will not be so good.
This is my first mod rewrite rule I have done but I have not tested it yet becase I will not kill the server. ok here it is:
I have a folder in public_html with name kabe. inside kabe I use index.php?page=play but play can be other things. so instead of index.php?page=play I want it be kabe/play.htm.
Is there any danger in testing or could I test these kind of script without danger for the server?
It said something about that you could get into a infinite loop if you do wrong and the server will not be so good.
This is my first mod rewrite rule I have done but I have not tested it yet becase I will not kill the server. ok here it is:
| Code: |
| RewriteEngine on
RewriteRule ^index\.php\?[^=]+=([a-z0-9]+)$ /kabe/$1\.htm [L,NC] |
I have a folder in public_html with name kabe. inside kabe I use index.php?page=play but play can be other things. so instead of index.php?page=play I want it be kabe/play.htm.
Is there any danger in testing or could I test these kind of script without danger for the server?
