I have a URL like: h*tp://example.com/?mod=news&action=view&title=an-example-of-title&cat=2&id=334
URL that I want: h*tp://example.com/an-example-of-title-2-334
My .htaccess line:
RewriteEngine On
RewriteRule ^(.*)-(.*)-(.*)$ ./?mod=news&action=view&title=$1&cid=$2&page_id=$3
But it goes to 404 page.
If the URL write like: h*tp://example.com/article-an-example-of-title-2-334
With .htaccess line:
RewriteEngine On
RewriteRule ^artikel-(.*)-(.*)-(.*)$ ./?mod=news&action=view&title=$1&cid=$2&page_id=$3
It will successfully goes to h*tp://example.com/article-an-example-of-title-2-334
Please someone direct me where did I do wrong? Thank you.
NB: please replace h*tp with http, since new user like me can’t put more than 2 links in a post.
So you need to be able to separate them in some sort of way. Can you tell me more about the mod=main rule and what it is intended to catch? And how what it catches would differ from your mod=news rule?