0

I have done it before but have forgotten how i did it, but I remember I used htaccess before to make it where instead of saying http://website.com/Profile.php?name=myusername

It would say http://www.website.com/Profile/myusername

Anyone know what to do?

noynac
  • 25
  • 8
  • possible duplicate http://stackoverflow.com/questions/20563772/reference-mod-rewrite-url-rewriting-and-pretty-links-explained – sunilwananje Mar 01 '17 at 06:50
  • Possible duplicate of [Reference: mod\_rewrite, URL rewriting and "pretty links" explained](http://stackoverflow.com/questions/20563772/reference-mod-rewrite-url-rewriting-and-pretty-links-explained) – Abhishek Gurjar Mar 01 '17 at 07:03

1 Answers1

2

Use the following in your .htaccess file

RewriteEngine on
RewriteRule ^([A-Za-z]+)$ /Profile.php?name=$1
Arun
  • 136
  • 1
  • 10