![]() |
rewrire rules doesnt work
here is a part of rewrite rules we have
.htaccess Options +SymLinksIfOwnerMatch Options +Indexes RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^([^.]+)$ $1.php [NC,L] ... RewriteRule ^gennemse!(.*) gennemse.php?page=$1 [QSA,L] .... RewriteRule ^kalender~(.*)~(.*)~(.*) kalender.php?ini=$1&yr=$2&wk=$3 [QSA,L] gennemse works well, however kalender say Error 404: File Not Found Here is debug log 2012-11-02 13:45:16.398 [NOTICE] [127.0.0.192:49650-1#APVH_mh.some.dk] Content len: 0, Request line: 'GET /kalender~Test~2012~44 HTTP/1.1' 2012-11-02 13:45:16.398 [INFO] [127.0.0.192:49650-1#APVH_mh.some.dk] Cookie len: 93, PHPSESSID=b85580ee1da14c4d1860ffeabcf69d13; 89a045bc98c0eb25473419f8719433d8150d1481= 2012-11-02 13:45:16.398 [DEBUG] [127.0.0.192:49650-1#APVH_mh.some.dk] Find context with URI: [/], location: [/hsphere/local/home/some/mh.some.dk/] 2012-11-02 13:45:16.398 [DEBUG] [127.0.0.192:49650-1#APVH_mh.some.dk] Find .htaccess context with URI: [/], location: [/hsphere/local/home/some/mh.some.dk/] 2012-11-02 13:45:16.398 [INFO] [127.0.0.192:49650-1#APVH_mh.some.dk] File not found [/hsphere/local/home/some/mh.some.dk/kalender~Test~2012~44.php] 2012-11-02 13:45:16.398 [DEBUG] [127.0.0.192:49650-1#APVH_mh.some.dk] processContextPath() return 25 2012-11-02 13:45:16.398 [DEBUG] [127.0.0.192:49650-1#APVH_mh.some.dk] processNewReq() return 25. 2012-11-02 13:45:16.398 [DEBUG] [127.0.0.192:49650-1#APVH_mh.some.dk] HttpConnection::sendHttpError(),code=404 Not Found 2012-11-02 13:45:16.398 [DEBUG] [127.0.0.192:49650-1#APVH_mh.some.dk] redirect to: URI=[/default/404.html], QueryString=[] 2012-11-02 13:45:16.398 [DEBUG] [127.0.0.192:49650-1#APVH_mh.some.dk] Error Page, processContextPath() return 0 2012-11-02 13:45:16.398 [DEBUG] [127.0.0.192:49650-1#APVH_mh.some.dk] processContextPath() return 0 2012-11-02 13:45:16.398 [DEBUG] [127.0.0.192:49650-1#APVH_mh.some.dk] readyCacheData() return 0 |
how about move
RewriteRule ^kalender~(.*)~(.*)~(.*) kalender.php?ini=$1&yr=$2&wk=$3 [QSA,L] ahead, just after RewriteEngine On ? |
the same: kalender~Test~2012~44.php File not found ...
|
~ may have special meaning here. so can you use other character for test purpose? e.g.,
RewriteRule ^kalender-(.*)-(.*)-(.*) kalender.php?ini=$1&yr=$2&wk=$3 [QSA,L] |
Quote:
|
| All times are GMT -7. The time now is 11:52 PM. |