Page 1 of 1

URL Rewriting

Posted: Sun Jan 12, 2014 9:43 am
by same2cool
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

Re: URL Rewriting

Posted: Sun Jan 12, 2014 10:11 am
by Celauran
Simple .htaccess rule should do the trick

Code: Select all

RewriteEngine on

RewriteRule ^services/(.*)$ services.php?p=$1 [L]

Re: URL Rewriting

Posted: Sun Jan 12, 2014 10:12 am
by Celauran
I recommend taking a look at and possibly bookmarking this site: http://htaccess.madewithlove.be/