.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
Post a Comment