Page 1 of 1
Help with mod_rewrite
Posted: Sun Jun 27, 2010 2:40 pm
by switch48
Ok I just cant seem to get this to work it is turned on but I cant install any script with a htaccess file ..
Any help will be most appreciated ..
I have checked phpinfo and it is in loaded modules but when i try to say install vanilla2 which has a htaccess file I get error page (500 internal server error) and the error log says ..../var/hda/web-apps/van2/html/.htaccess: RewriteEngine not allowed here....
Re: Help with mod_rewrite
Posted: Mon Jun 28, 2010 4:55 am
by bigfoot65
Hello,
In order for me to get it working, I had to modify the web app .conf file. Replace a few lines in the area below the directory line.
For example, this is the code I used:
Options Indexes FollowSymLinks +ExecCGI
AddHandler fcgid-script .fcg
AllowOverride FileInfo Limit Options Indexes
Order allow,deny
Allow from all
So, find this area in the .conf file and replace it. Then, restart the web server and your app should work fine with the .htaccess files.
Hope this helps.
Re: Help with mod_rewrite
Posted: Thu Jul 01, 2010 2:06 am
by switch48
Sweet cheers mate that did the trick but do I have to add it to every app conf file I create ? .
Re: Help with mod_rewrite
Posted: Thu Jul 01, 2010 4:46 am
by bigfoot65
Great. Yes you will need to add it to any app that uses mod_rewrite. For the Amahi packaged apps, we have already incorporated it.
If you are packaging apps, it is considered a custom web option and the app type is then listed as custom. This will force the install script to automatically modify the .conf file using a different template for the application on install.
Re: Help with mod_rewrite
Posted: Sun Apr 15, 2012 6:14 pm
by tonmartinz
Thanks solved my .htaccess rewrite issues!