HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Server Operation (
-   -   .htaccess and Rewrite woes with Debian4.0 and ISPconfig (

tony98 20th April 2007 22:20

.htaccess and Rewrite woes with Debian4.0 and ISPconfig
I recently installed Debian4.0 via the perfect install guide and ISPconfig ontop of that. I've attempted to setup myPh3 Gallery ( and phpAutoGallery ( with little or no sucess. (I've run phpAutoGallery before with no troubles)

myPh3 started with complaining about "Options not allowed here" I changed the apache2.conf to AllowOverride All in that directory but that just lead me to a new problem.
[Fri Apr 20 11:32:07 2007] [error] [client x.x.x.x] Directory index forbidden by Options directive: /var/www/web7/web/myPh3/

web/myPh3/.htaccess should be redirecting the client....


Options +FollowSymLinks -MultiViews

RewriteEngine On
RewriteRule ^myPh3/?$ myPh3.core.php [L]
RewriteRule ^myPh3/(album|photo)/(.*)$ myPh3.core.php?$1=$2 [L]
So, after that I figured something was broken and proceeded to not find any information on myPh3 users.. so, I moved to something I've used before (even so I think I would like to try myPh3 in the future)

phpAutoGallery is also giving me problems with the url rewrite.. This is the page that loads when I go to the main gallery page.. notice the recursive /photobox

Page: //home/www/web7/web/photobox//photobox/ not found!
[ admin ]
Indexed by phpAutoGallery v0.9.6
2004 All rights reserved.
and here is the .htaccess file for that directory.

RewriteEngine on

RewriteCond %{REQUEST_URI} !.*__phpAutoGallery/wrapper\.php.*
RewriteRule .* /photobox/__phpAutoGallery/wrapper.php [NE,QSA,L]
Any ideas? I've checked /etc/apache2/mods-enabled and rewrite is turned on.

Thanks !


elmotheelk 27th April 2007 03:30

Hi Tony,

Search Google on my own script, I came across your problem with my myPh3 script. Very nice to see people actually trying it out and using it! THerefor, I'd be more than willing to help you with your problems.

First of all, you can simply turn off URL rewriting to see it the script is set up correctly. Get your browser to /myPh3/myPh3.core.php (if you installed the script in a website subdirectory /myPh3) hereafter. If this works, we can direct to the rewrite problem. Are you sure your used the /myPh3/myPh3 URL? It does NOT use the directory default page... You can also contact me at the SourceForge site . Hope to hear from you.


All times are GMT +2. The time now is 08:17.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.