How to format URL on Website with htaccess
问题 I would like some help in formatting a url so that it is more SEO friendly. So the url is formatted below www.portfolio.com/workDetails?url=work-title-here but I would like the format to be www.portfolio.com/work/work-title-here I've tried the following RewriteEngine on RewriteRule ^/work/([0-9]+)\.html /workDetail.php?url=$1 But I got a 500x error 回答1: This page appears to have a solution to what you are trying to do: <? $Params = explode( '/', $PATH_INFO ); while( list( $Index, $Value ) =