httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reynier Perez Mira" <rper...@uci.cu>
Subject RE: [users@httpd] Problems with .htaccess file
Date Sat, 15 Nov 2008 19:58:38 GMT
Well I fix it setting RewriteBase to / not to /webacula. Anyway thanks for your time

Ing. Reynier Pérez Mira
Dirección Técnica IP 

> -----Original Message-----
> From: Justin Pasher [mailto:justinp@newmediagateway.com]
> Sent: Saturday, November 15, 2008 2:47 PM
> To: users@httpd.apache.org
> Subject: RE: [users@httpd] Problems with .htaccess file
> 
> > -----Original Message-----
> > From: Reynier Perez Mira [mailto:rperezm@uci.cu]
> > Sent: Saturday, November 15, 2008 9:30 AM
> > To: users@httpd.apache.org
> > Subject: RE: [users@httpd] Problems with .htaccess file
> >
> > Hi, sorry for this late but I was busy with some other things. Now answer
> > every one of yours questions:
> >
> > > What do you have DocumentRoot set to for this VirtualHost?
> > /var/www/webacula/html
> >
> > > In what
> > > directory is the .htaccess file located?
> > /var/www/webacula/html/.htaccess
> >
> > > In what directory is the
> > > index.php file for webacula located?
> > /var/www/webacula/html/index.php
> >
> > > Unless I'm misreading the logs (which is quite possible), your
> > > DocumentRoot appears to be /var/www/webacula/html and your .htaccess
> > > file appears to be in that same directory...?
> >
> > You doesn't misreading nothing and you're right both are in the same
> > directory
> 
> Ahhh. There is the problem. You are setting the RewriteBase to /webacula
> from within /var/www/webacula/html (DocumentRoot), but that's not actually
> your RewriteBase (relative to the .htaccess file). You actually don't need a
> RewriteBase, because the files are not under
> /var/www/webacula/html/webacula. Use these rewrite rules:
> 
> Inside /var/www/webacula/html/.htaccess:
> 
> RewriteCond %{REQUEST_URI} !^/index\.php$
> RewriteRule !\.(js|ico|gif|jpg|png|css)$ /index.php
> 
> 
> --
> Justin Pasher
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message