Preserved Topic: mod_rewrite oddity (Page 1 of 1) |
|
---|---|
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 07-08-2002 16:14
Now I use this to produce a printer friendly page: quote:
|
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 07-08-2002 21:29
The first line doesn't work because filename of the script is the same as imaginary folder which is used as rule. Just rename the name of script to something like "printer_friendly.php" and everything should work fine... |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 07-08-2002 22:08
mr.maX: Thanks that works a treat (of course). |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 07-08-2002 22:18
The second part of my message from above says that your code should work - I don't see a reason why it doesn't work, apparently mod_rewrite thinks that base of rewrite rule and filename are the same (and rewrites back), but they really aren't "print/" is not the same as "print." (notice slash and dot)... |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 07-08-2002 22:55
mr.maX: OK cool - although it shouldn't work in theory it does which is fine by me |