I have a template that is same that directory name (namely, 'video'). Both template and files in directory are linked thoughout the site, so they cannot be removed.
I'm trying to remove index.php from all links, but the recommended method does not work in this particular case.
I've added following lines to my .htaccess, that makes the template 'main' page to be displayed correctly, but the pagination links still do not work. I'm getting 404 returned by server, not EE. I.e /video/ works, but /video/P10 does not.
RewriteCond %{REQUEST_URI} !^video$ [NC]
RewriteCond $1 !\.(css|js|gif|jpe?g|png|pdf|swf|flv|avi|mpe?g) [NC]
RewriteRule ^video(.*)$ index.php/video$1 [L]
Can anyone give me advice on what directive do I have to add to .htaccess so that /video/ and /video/P10 would be correctly served by EE, but /video/some_file.avi would be served by file system?
RewriteCond %{THE_REQUEST} ^GET/video [NC] RewriteRule (.*) /index.php/$1 [R=301,L]