.htaccess - Remove a directory name from URL using htaccess -


i having url blow:

http://www.example.com/joi-videos/user_videos/rakesh/index.php

i want remove "user_videos" url , url should like below: http://www.example.com/rakesh/index.php

please me this:

i writing below code not working:

rewriteengine on rewriterule ^user_videos/(.*)$ /$1 [l] 

try 1

rewriteengine on

rewritecond %{request_filename} !-f

rewritecond %{request_filename} !-d

rewriterule ^([^/]+)/?$ user_videos/$1 [qsa,l]


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -