I want to rewrite this url:
http://cyanogenupdatetracker.com/api/v1/show_devices.php
to http://cyanogenupdatetracker.com/api/v1/devices
I used this .htaccess file
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^devices$ devices/
RewriteRule ^devices/$ /var/www/api/v1/show_devices.php
It always returns a 404 error, even though i know and am 100% sure that the php file exists at the given location. I tried everything (no path before php file, custom vhosts, rewritebase) but none of this is working.
The apache config for this dir is as following:
Alias /api /var/www/api
<Directory /var/www/api>
Options FollowSymLinks
DirectoryIndex index.php
AllowOverride All
</Directory>
I am completely done with this. It seems so simple (only a few php files) and why has it to be that hard, just to simplify the urls to make them nicer.
What am I doing wrong?????