In message <[EMAIL PROTECTED]>, Bob Sawyer <[EMAIL PROTECTED]> writes > > >--- Brian Cummiskey <[EMAIL PROTECTED]> wrote: >> use mod_rewrite in the profiles directory to make it appear as >> username.php > >So, even after Googling "mod_rewrite" and viewing a few different >articles on it, I'm no closer to understanding exactly how to do what I >proposed in my previous reply, which is to take > >http://www.domain.com/profiles.php?user=foo > >appear as > >http://www.domain.com/profiles/user/ > >Could we get a quick tutorial, please? :-)
That is possibly because you are doing it 'backwards' - most people would want it to work the other way, so I expect that you will see most examples the other way round. I would guess at RewriteRule ^profiles.php?user=(.*) /profiles/$1 In your example, your 'foo' is accepted into (.*) and spit out as $1. I *know* this works - because it is part of my htaccess: RewriteRule ^detail/(.*).htm /detail.php?C=$1 which takes an entry of mydomain dot com/detail/23.htm and converts it to mydomain dot com/detail.php?C=23 to get rid of the ?C=23. -- Pete Clark Community email addresses: Post message: [email protected] Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
