Theese are my rules. First one is working but second one is not.
It was working on my old server. I Just changed my server now its not working.
RewriteRule ^oyunlar/([0-9]+)/([_0-9a-z-]+) games.php?id=$1&title=$2
RewriteRule ^post/([_0-9a-z-]+) post.php?up=$1
what could be wrong ?
on my php side, $_GET completely empty.
That is whole 开发者_StackOverflowfile;
RewriteEngine on
RewriteRule ^uye user.php
RewriteRule ^oyunlar/([0-9]+)/([_0-9a-z-]+) games.php?id=$1&title=$2
RewriteRule ^post/([_0-9a-z-]+) post.php?up=$1
RewriteRule ^tv tv.php
RewriteRule ^thumb timthumb2.php
ErrorDocument 404 /404.php
and that is the url i requested: myurl.com/post/login
i'm checking status with charles. ^post part is working but querysting part is not.
edit: i just made i a couple tests, and actually both rules not working properly and somehow, my files can work without extension like: /hello.php or /hello
additional info: this is my own private server, debian lenny + ispCP
@siniradam
Try changing your regex from this
([_0-9a-z-]+)
to this
([-_0-9a-z]+)
If a hyphen is supposed to be one of the allowed characters, it needs to be first in the list, not last.
Finally i've resolved my problem. it is occurs beacuse of MultiViews
somehow there was a rewrite and multiviews conflict. Simply i just disabled it from the .conf file.
Thank you people.
精彩评论