regex - htaccess mod_rewrite server error -


I try to create good URLs with the following htaccess entries:

  rewrite% {REQUEST_FILENAME}! -f Rehabilitation% {REQUEST_FILENAME}! -d Recrite Array ^^ ([\ w] +) /? ([\ W] +)? $ /index.php?subdir=$1&page=$2 (works fine) #ReverWright ^ ([^ /] +) /? ([^ /] +)? $ /index.php?subdir=$1&page=$2 (does not work: 500.in.ser error)  

(This is not very important to me, because the first reggax works , But if I understand this problem then maybe the next problem is also understood)

I will try to get the remaining query string from the following line

  #RewriteRule ^ (\ W +) /? ([\ W] +)? (. *) $ /index.php?subdir = $ 1 and page = $ 2 and $ 3 (does not work: 500.in.sir error)  

Can anyone explain this Is that what I'm doing wrong? I have read something about this that the wrong regex could make an endless loop, maybe I got one or two?

Thanks in advance and the doctor's request

query string RewriteRule , you have to capture and check it in RewriteCond% {QUERY_STRING} ... separately.

However, you do not need to retain the rest of the query string in the rewrite, only you QSA or query string adend in your rule Flag:

  Rewind Conduit% {REQUEST_FILENAME}! -FREVRATKOWN% {REQUEST_FILENAME}! -D Recriminal Rule ^ ([\ w] +) /? ([\ W] +)? $ /index.php?subdir=$1&page=$2 [QSA]  

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -