![]() Preserved Topic: mod_rewrite oddity (Page 1 of 1) |
|
---|---|
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
![]() Now I use this to produce a printer friendly page: quote:
|
Maniac (V) Mad Scientist From: Belgrade, Serbia |
![]() 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 |
![]() mr.maX: Thanks that works a treat (of course). |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
![]() 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 |
![]() mr.maX: OK cool - although it shouldn't work in theory it does which is fine by me |