Hypertext Access file Rewriting and Redirecting SEO Friendly URLs

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

Search engines won't index your products if you have a URL like the following:

http://www.yourdomain.com/product.php?id=123

SEO friendly URL would look like http://www.yourdomain.com/123/product-name/. The following code helps achieve this without having to change product.php code.

RewriteEngine On
RewriteRule ^product/([0-9]+)/product-name-slug/?$ product.php?id=$1


Got any Hypertext Access file Question?