hi I wanted to do url rewrite on my website I want to change the following url www.test.com/folder1/red.php?name=file1&ext=mp4 into www.test.com/folder1/file1.mp4 Can you tell me what code should i enter in .htaccess thanks in advance
RewriteRule /folder1/([^/\.])\.([^/\.]) /folder1/red.php?name=$1&ext=$2 [L] This will of course allow special characters, so tighten the two regex statements to only allow the characters you need.
Not Found The requested URL /folder1/video.mp4 was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Turn on redirect logging and see where it's actually trying to go. I don't know how to off the top of my head, but google will tell you.