php - .htaccess seo rewrite -
my current setup is:
site.com/dir/56
what want is:
site.com/dir/56/some-string-here-about-the-page
my current .htaccess setup is:
rewriteengine on options +followsymlinks rewriterule ([0-9]+) index.php?id=$1
i'm not .htaccess expert, seems me existing setup work. doing taking uri given , finding integer inside -- anywhere inside it. ignores other text in uri, rewriting index?id=$1. $1 integer found, example, 56.
you more explicit , try this:
rewriteengine on options +followsymlinks rewriterule dir\/([0-9]+)(\/)? index.php?id=$1
however, i'm reasonably sure fancy-urls work correctly without change.
Comments
Post a Comment