My website url is like
domain.com/services.php?p=writing-program
that I can use $_GET['p']
I want to convert it as
domain.com/services/writing-program
How to do it. It is SEO friendly Rule
URL Rewriting
Moderator: General Moderators
Re: URL Rewriting
Simple .htaccess rule should do the trick
Code: Select all
RewriteEngine on
RewriteRule ^services/(.*)$ services.php?p=$1 [L]
Re: URL Rewriting
I recommend taking a look at and possibly bookmarking this site: http://htaccess.madewithlove.be/