views:

9

answers:

0

Hi!

I have some problem with rewrite rules. Now my config looks like this:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond ${REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_URI} ^/video/(.*)$
RewriteRule ^(.*)$ /video/index.php [L]

So links example.com/video/?p=2231&c=395840&s=849264&l=101641 works fine.

Why i need is to allow put any string beetween video/ and ?p=2231&c=395840&s=849264&l=101641 for SEO. For ex. example.com/video/string/string/?p=2231&c=395840&s=849264&l=101641 and dont map /string/string/ to index.php.

So i was try somthing like this: RewriteRule ^video/(.+)/(.+)/(.+)$ /video/$3 [L], but this rule dont work.

Any idea how to solve it?

Thank you!