Page 2 of 2

Re: [Pretty URLs] - i can't get it to work

Posted: Tue Apr 08, 2008 6:50 pm
by rtkd
yeah, phpinfo says "mod_rewrite" module is loaded.

error log says this

Code: Select all


[warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
[warn] RewriteCond: NoCase option for non-regex pattern '-d' is not supported and will be ignored.
[error] [client 127.0.0.1] Invalid URI in request GET /site/p005/arbeiten.html HTTP/1.1, referer: http://localhost/site/p005/
[warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
[warn] RewriteCond: NoCase option for non-regex pattern '-d' is not supported and will be ignored.
[warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
[warn] RewriteCond: NoCase option for non-regex pattern '-d' is not supported and will be ignored.
[warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
[warn] RewriteCond: NoCase option for non-regex pattern '-d' is not supported and will be ignored.
[warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
[warn] RewriteCond: NoCase option for non-regex pattern '-d' is not supported and will be ignored.


Re: [Pretty URLs] - i can't get it to work

Posted: Wed Apr 09, 2008 6:56 pm
by Pierre M.
Hello,

first, try to rewrite static URLs (/abc/123.html) to actual static HTML (/xyz/456.html) pages, to test the rewriting. When this works, go on to the dynamic ones.

Your first .htaccess seems good (modulo the "two mistakes"). It doesn't hurt and may help to setup the RewriteBase also.
Try to setup a rewritelog (see Apache doc) to debug.

The warning about NoCase seems Apache v2.2 related. You are not the first to report some rewriting problem specific to this version. Please search Apache's support too.

Pierre M.

Re: [Pretty URLs] - i can't get it to work

Posted: Thu Apr 10, 2008 11:09 am
by rtkd
i will do that, and report back here as soon as anything changes.