apache - htaccess rewrite-rule not matching -


i have problem since changed hosting. new hosting package has problems simple rule, worked before perfect.

rewriteengine on rewritebase /  rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewritecond %{request_filename} !-l  # not matching rewriterule ^pro/(.*)/(.*)/$ pro.php?id=$1&p=$2 [qsa,l]  # matching rewriterule ^(.*)/(.*)/$ pro.php?id=$1&p=$2 [qsa,l] 

when call f.e. "www.example.com/pro/350/658a/" first rule not machting second one. doe has idea why not working on new hosting-package?

.* matches pretty everything. try these rules:

rewriteengine on rewritebase /  rewritecond %{request_filename} -f [or] rewritecond %{request_filename} -d rewriterule ^ - [l]  # not matching rewriterule ^pro/([^/]+)/([^/]+)/?$ pro.php?id=$1&p=$2 [qsa,l]  # matching rewriterule ^([^/]+)/([^/]+)/?$ pro.php?id=$1&p=$2 [qsa,l] 

Comments

Popular posts from this blog

How to provide Authorization & Authentication using Asp.net, C#? -

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

How to use Authorization & Authentication in Asp.net, C#? -