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....
Help with mod_rewrite
Re: Help with mod_rewrite
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.
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.
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Re: Help with mod_rewrite
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
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.
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.
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
-
- Posts: 1
- Joined: Sun Apr 15, 2012 5:10 pm
- Location: Byron Bay, Australia
- Contact:
Re: Help with mod_rewrite
Thanks solved my .htaccess rewrite issues!
Who is online
Users browsing this forum: Bing [Bot] and 9 guests