Jump to content

htaccess


doddsey_65

Recommended Posts

I am trying to use a htaccess file to rewrite my urls to be SEO friendly.

 

eg instead of profile.php?username=username

    it would be profile/username/username.html

 

this is the contents of my htaccess:

 

Options +FollowSymLinks
RewriteEngine on
RewriteRule profile/usrename/(.*)/ profile.php?usrename=$1

unfortunatly its not working. My host does have this enabled and it is in my site root. Is there anything i have forgot to include for it to work?

Link to comment
https://forums.phpfreaks.com/topic/204525-htaccess/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.