- Author was Featured
- Bought between 50 and 99 items
- Contributed a Tutorial to a Tuts+ Site
- Exclusive Author
- Has been a member for 5-6 years
- Interviewed on the Envato Notes blog
- Item was Featured
- Referred between 100 and 199 users
- Repeatedly Helped protect Envato Marketplaces against copyright violations
I am trying to fix up the url so it looks like: http://mysite.com/videos/xxxx.m4v
Options +FollowSymlinks RewriteEngine on RewriteRule ^videos/([^/]+).m4v fileserve.php?id=$1
When I go to http://mysite.com/videos/1.m4v, I get a 404 not found:
The requested URL /mnt/stor2-wc1-dfw1/xxxxx/mysite.com/web/content/fileserve.php was not found on this server.
fileserve.php is definitely there so I am not sure what I am doing wrong.
- Microlancer Beta Tester
- Author had a Free File of the Month
- Has been a member for 3-4 years
- Item was Featured
- Author was Featured
- Austria
- Exclusive Author
- Referred between 200 and 499 users
I didn’t test it but maybe the ’.’ should be escaped:
RewriteRule ^videos/([^/]+)\.m4v fileserve.php?id=$1
- Author was Featured
- Bought between 50 and 99 items
- Contributed a Tutorial to a Tuts+ Site
- Exclusive Author
- Has been a member for 5-6 years
- Interviewed on the Envato Notes blog
- Item was Featured
- Referred between 100 and 199 users
- Repeatedly Helped protect Envato Marketplaces against copyright violations
well the rewrite rule is working. It is pointing to fileserve.php as you can see in the 404 error, it is just saying it doesn’t exist even though it is there. I tried escaping the period but that didn’t make any difference 
- Microlancer Beta Tester
- Author had a Free File of the Month
- Has been a member for 3-4 years
- Item was Featured
- Author was Featured
- Austria
- Exclusive Author
- Referred between 200 and 499 users
hmm weird…
set a RewriteBase:RewriteEngine On RewriteBase /
and make sure your file IS there! Maybe it is wrong spelled or something
- Author was Featured
- Bought between 50 and 99 items
- Contributed a Tutorial to a Tuts+ Site
- Exclusive Author
- Has been a member for 5-6 years
- Interviewed on the Envato Notes blog
- Item was Featured
- Referred between 100 and 199 users
- Repeatedly Helped protect Envato Marketplaces against copyright violations
revaxarts said
hmm weird… set a RewriteBase:RewriteEngine On RewriteBase /and make sure your file IS there! Maybe it is wrong spelled or something
the RewriteBase fixed it! You’re awesome man thanks!

