Solved: .htaccess Redirect webapp
Posted: Sun Sep 08, 2013 7:51 pm
I am running a webapp (PyTiVo). It is a python program that is accessed via port 9032. My Amahi box is on Ubuntu 12 LTS, running Amahi 6. I created a "New Web App" via the Amahi web interface. In the html folder for that app (/var/hda/web-apps/pytivo/html) I wrote a .htaccess file similar to the one used in the webmin Amahi app (see code below). However, when I point my browser to http://pytivo I get a page that say "Internal Server error." But if I point my browser to http://pytivo:9032 I can access the pyTiVo interface.
Does anyone see a reason why the .htaccess isn't working?
Does anyone see a reason why the .htaccess isn't working?
Code: Select all
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule (.*) https://%{HTTP_HOST}:9032 [R,L]