apache - Datalife Engine Rewrite URL Without ID -


i want change rewrite url remove id number,

site/2-post.html --> normally
site/post.html --> want

is possible ? i've checked modules php files , changed codes necessary, in .htaccess couldn't unable set. .htaccess here guess there necessarry part when changed problems happend

rewriterule ^([0-9]+)-([^/]*)\.html$ /index.php?newsid=$1&seourl=$2 [l] 

i don't think want achieve possible, because application need know id in order useful. if thing browser requests site/post.html, server cannot magically reinvent id have been in url.

the way possible if application can article based purely on "seourl" parameter, in case can remove "newsid" part url, leaving rule this:

rewriterule ^([^/]*)\.html$ /index.php?seourl=$1 [l] 

the easy way test whether work type url browser of form rule map to, e.g. http://yoursite.example.com/index.php?seourl=some-post-that-exists


Comments