I remember having this issue with vhcs2 and now i've run into it with ispcp, i hope there's a solution, or that i'm just making a dumb mistake that i can fix easely!
the problem is that i need to be able to rewrite urls using mod-rewrite. Now as soon as i have a .htaccess file in my htdocs folder i get
"Error 500! - Internal Server Error!" errors.
Here is most of my .htaccess file:
Quote:RewriteEngine on
Options +FollowSymLinks
ErrorDocument 400 /error.php?400
ErrorDocument 401 /error.php?401
ErrorDocument 403 /error.php?403
ErrorDocument 404 /error.php?404
ErrorDocument 500 /error.php?500
#assign custompage to site index
DirectoryIndex news.php
DirectoryIndex index.php
DirectoryIndex index.html
DirectoryIndex index.htm
#Fix for the page redirect na Login
#RewriteRule ^page.php$ / [R]
#Fix For the CustomLogin in The Header
RewriteRule ^gallery/index.php(\?logout) /index.php?%1 [L]
RewriteRule ^gallerysitemap.xml http://www.psygarden.net/gallery/index.p...ap.Sitemap [L]
RewriteRule ^gallery/v/([^?]+)(\?.|\ .) /e107_plugins/gallery2/gallery2.php?g2_path=%1 [QSA,L]
RewriteRule ^gallery/$ /e107_plugins/gallery2/gallery2.php$1 [L]
RewriteRule ^gallery$ /e107_plugins/gallery2/gallery2.php$1 [L]
RewriteRule ^gallery/index.php(.*) /e107_plugins/gallery2/gallery2.php$1 [L]
RewriteRule ^gallery/signup.php /signup.php [L]
RewriteRule ^gallery/e107_admin/admin.php /e107_admin/admin.php [L]
RewriteRule ^gallery/user.php(.*) /user.php%1 [L]
RewriteRule ^gallery/usersettings.php /usersettings.php [L]
# BEGIN Url Rewrite section
# (Automatically generated. Do not edit this section)
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
RewriteBase /g2/
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
RewriteCond %{REQUEST_URI} !/gallery2/main\.php$
RewriteRule . - [L]
RewriteCond %{THE_REQUEST} /gallery/popular(\?.|\ .)
RewriteCond %{REQUEST_URI} !/gallery/main\.php$
RewriteRule . /e107_plugins/gallery2/gallery2.php?g2_view=dynamicalbum.PopularAlbum [QSA,L]
RewriteCond %{THE_REQUEST} /gallery/updates(\?.|\ .)
RewriteCond %{REQUEST_URI} !/gallery/main\.php$
RewriteRule . /e107_plugins/gallery2/gallery2.php?g2_view=dynamicalbum.UpdatesAlbum [QSA,L]
RewriteCond %{THE_REQUEST} /gallery/random(\?.|\ .)
RewriteCond %{REQUEST_URI} !/gallery/main\.php$
RewriteRule . /e107_plugins/gallery2/gallery2.php?g2_view=dynamicalbum.RandomAlbum [QSA,L]
RewriteCond %{THE_REQUEST} /gallery/d/([0-9]+)-([0-9]+)/([^/?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/gallery/main\.php$
RewriteRule . /e107_plugins/gallery2/gallery2.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%2&g2_file$
RewriteCond %{THE_REQUEST} /gallery/v/([^?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/gallery/main\.php$
RewriteRule . /e107_plugins/gallery2/gallery2.php?g2_path=%1 [QSA,L]
</IfModule>
Does anyone have suggestions how to get a working setup while using all these rewrite rules?
Kind regards,
Rik