.htaccess mod_rewrite is preventing certain files from being served

Posted by Lucas on Stack Overflow See other posts from Stack Overflow or by Lucas
Published on 2010-03-09T02:58:30Z Indexed on 2010/03/09 3:06 UTC
Read the original article Hit count: 322

Filed under:
|
|

i have a successful use of mod_rewrite to make a site display as i wish... however, i have migrated the 'mock-up' folder to the root directory and in implementing these rules for the site, some files are not being served in the ^pdfs folder:

RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^ - [L]

(old directory)

RewriteRule ^redesign_03012010/mock-up/([^/]+)/([^/]+)$ /redesign_03012010/mock-up/index.php?page=$1&section=$2 [PT]
RewriteRule ^redesign_03012010/mock-up/([^/]+)$ /redesign_03012010/mock-up/index.php?page=$1 [PT,L]

(new directory)

RewriteRule ^([^/]+)/([^/]+)$ /index.php?test=1&page=$1&section=$2 [PT]
RewriteRule ^([^/]+)$ /index.php?test=1&page=$1 [PT,L]

... ^pdfs (aka /pdfs/) is not serving the files... any suggestions?

© Stack Overflow or respective owner

Related posts about .htaccess

Related posts about mod-rewrite