My current rewrite rules looks like:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond ${REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_URI} ^/video/(.*)$
RewriteRule ^(.*)$ /video/index.php [L]
URL's like example.com/video/?p=2231&c=395840&s=849264&l=101641
works fine.
For SEO reasons, I need to allow any string between video/
and ?p=2231&c=395840&s=849264&l=101641
. For example, the URL example.com/video/string/string/?p=2231&c=395840&s=849264&l=101641
should not map /string/string/
to index.php.
I tried the following rule, but it didn't work:
RewriteRule ^video/(.+)/(.+)/(.+)$ /video/$3 [L]
How should I solve this?