skoop
11-23-2002, 11:14 AM
hey all,
Ive had a look around but couldn't really find anything for this situation yet (or else missed it, in which case you can call me stupid ;) )
anyway, the situation is this: for a new site I'm working on I want www.domainname.com/username to be 'the same' as www.domainname.com/content.php?username
now i know this should be possible with mod_rewrite. after a few tutorials on the web I thought the following line should work:
RewriteRule ^(/.*)$ /main.php?$1
this doesn't work, it simply gives an error 404 when requesting www.domainname.com/skoop ...
I've also tried a few variations, but this didn't really result in anything worthy either, cause that gave errors 404, 500 or even no traffic back to me after requesting it ...
can anyone tell me how to do this?
stefan
Ive had a look around but couldn't really find anything for this situation yet (or else missed it, in which case you can call me stupid ;) )
anyway, the situation is this: for a new site I'm working on I want www.domainname.com/username to be 'the same' as www.domainname.com/content.php?username
now i know this should be possible with mod_rewrite. after a few tutorials on the web I thought the following line should work:
RewriteRule ^(/.*)$ /main.php?$1
this doesn't work, it simply gives an error 404 when requesting www.domainname.com/skoop ...
I've also tried a few variations, but this didn't really result in anything worthy either, cause that gave errors 404, 500 or even no traffic back to me after requesting it ...
can anyone tell me how to do this?
stefan
