Paste the URL with query parameters (the part with ? and &)
This is your new SEO-friendly URL
Select your web server type and copy the code to make it work
File: .htaccess
Location: Root directory of your website
RewriteEngine On
RewriteRule ^([^/]+)/([^/]+)/?$ page.php?id=$1&name=$2 [L,QSA]
product.php?id=123
product/123
article.php?id=10&category=tech
article/10/tech
user.php?name=john&action=profile
user/john/profile
Compress and optimize your CSS code instantly for faster website loading
Free online JavaScript minifier to compress, optimize and reduce JS file size instantly
Create SEO-friendly redirect rules for Apache servers instantly
URL Rewriting Tool converts ugly, parameter-filled URLs (like product.php?id=123&name=laptop) into clean, search engine friendly URLs (like product/123/laptop). This free online tool automatically generates rewrite rules for Apache, Nginx, and IIS servers, making it easy to implement professional-looking URLs on your website. Simply paste your dynamic URL, and get instant conversion results along with ready-to-use server configuration code.
product.php?id=123&category=tech)product.php?id=456 to product/456 for better search rankingsarticle.php?id=10&category=tech to article/10/tech for improved user experienceprofile.php?user=john&action=view to profile/john/view for cleaner sharinglisting.php?id=789&city=newyork to listing/789/newyorkjob.php?id=234&location=remote to job/234/remotecourse.php?id=567&subject=math to course/567/mathHave questions about URL Rewriting Tool? Find answers to the most common queries below.