Trying to get Product Name and product ID into url with slash at the end and in between without ?p=

请求翻译

I guess the title almost says it all.

My original url looks like: http://www.something.com/buy/index.php?p=025823

The .htaccess I'm using looks like this:

Options +FollowSymLinks

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(\d+)*$ ./index.php?p=$1

The resulting url looks like: http://www.something.com/buy/025823

I'd like to end up with a url like: http://www.something.com/buy/Product Name/025823/

Can anyone help? Especially that Gumbo fella! LOL

1个回答