Hi guys. I'm already using mod-rewrite for search engine friendly URLs, such as:
Code:
RewriteRule ^category/(.*)/ browsecats.php?cid=$1
Which basically means that browsecats.php?cid=20 now works as /category/20/
I'm running into issues when trying to use mod-rewrite for words and not just numbers as above. This is my setup:
Code:
RewriteRule ^profile/(.*)/ view_profile.php?sb_name=$1
(sb_name is the username). It appears to work on the surface, as all URLs appear as:
profile/username/
However whenever I click on the link it takes me to a URL loop and says it will 'never complete'. So in summary numbers work fine, words do not, why is this???? Any help appreciated as I'm pulling my hair out.
|