views:

15

answers:

1

Hello,

I want to do a .htaccess rewrite, which when users enter this http://DomainName.com/UserName should go to http://DomainName.com/UserDirectory/UserName, but should show http://DomainName.com/UserName to the user

Thanks Jean

+1  A: 
RewriteRule !^/([^/]*)$ /UserDirectory/$1 [L]
ivans
I want to place it in the respective web folder and apache should reflect once?
Jean
You need to put it in the root directory.What does "reflect" mean in this context?
ivans