Profile URLs |
[eluser]doubleplusgood[/eluser]
Hi there, I know this subject has been discussed many times before about creating 'pretty' profile URLs. I have begun integrating this into my application and I think I am just about there, but something doesn't seem to be quite right and I think it may be to do with the htaccess. First up, each user account has a 'username' field with their details in the DB. Then, in the config.php I have set a '.html' URL Suffix. I have a profile.php controller as follows; Code: <?php My profile_model.php looks like this; Code: <?php My .htaccess looks like this; Code: <IfModule mod_rewrite.c> So, I can view a user profile at this URL as an example; http://localhost:8888/codeigniter-users/...anabi.html However, I want to also view the profile at a URL like this; http://localhost:8888/codeigniter-users/hanabi I *thought* my .htaccess would sort this out, but can't seem to get it to work. Would someone be able to advise on what i'm missing? It's probably something obvious. :S Thank you.
[eluser]sihijau[/eluser]
did you set $config['url_suffix'] = '.html'; ? try change to remove .html |
Welcome Guest, Not a member yet? Register Sign In |