hi!
I need to convert address like this:
http://www.page.com/prece/1078/Tuvojas_Saules_aptumsums
http://www.page.com/prece/42/something_else
To that:
http://www.page.com/index.php?cat=prece&id=1078
http://www.page.com/index.php?cat=prece&id=42
Don't need last variable.
Already out of ideas
I tried:
RewriteRule ^prece/([0-9]+)/(.*)/? /index.php?cat=prece&id=$1 [L]
RewriteRule ^prece/([0-9]+)/? /index.php?cat=prece&id=$1 [L]
RewriteRule ^prece/([0-9]+) /index.php?cat=prece&id=$1 [L]
RewriteRule ^prece/([0-9]+)/(.*)/$ /index.php?cat=prece&id=$1 [L]
RewriteRule ^prece/([0-9]+)/(.*)/?$ /index.php?cat=prece&id=$1 [L]
Why this is not working?