noynac
noynac

Reputation: 25

Use htaccess to change file names?

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?

Upvotes: 0

Views: 48

Answers (1)

Arun
Arun

Reputation: 136

Use the following in your .htaccess file

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

Upvotes: 2

Related Questions