dapaintballer331 Posted November 23, 2007 Share Posted November 23, 2007 I want to redirect *.html files to index.php?page=* That is working This isn't: Redirecting *.pdf to Docs/*.pdf Here is my code, please tell me what is wrong with the last line: (all files are in root/newsite/ Options +FollowSymLinks RewriteEngine on RewriteRule (.*)\.html$ /newsite/index.php?page=$1 RewriteRule (.*)\.htm$ /newsite/index.php?page=$1 RewriteRule (.*)\.pdf$ /newsite/$1.pdf Quote Link to comment https://forums.phpfreaks.com/topic/78620-23-working-small-problem/ Share on other sites More sharing options...
madmax Posted January 8, 2008 Share Posted January 8, 2008 I think you need to have a [L] at the end of each rule Quote Link to comment https://forums.phpfreaks.com/topic/78620-23-working-small-problem/#findComment-434022 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.