RE: .htaccess not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 

> -----Original Message-----
> From: Vincent Bray [mailto:noodlet@xxxxxxxxx] 
> Sent: 21 August 2007 12:27
> To: users@xxxxxxxxxxxxxxxx
> Subject: Re:  .htaccess not working
> 
> On 21/08/07, John Clement <john.clement@xxxxxxxxxxxxxxx> wrote:
> >
> >
> > Hi all,
> >
> > I've taken the following .htaccess from CentOS 4.5 with Apache 2
> >
> > ============
> > Options +FollowSymLinks
> >
> > RewriteEngine on
> > RewriteRule ^([0-9]+) index.php?forum_id=$1&%{QUERY_STRING}
> > ============
> >
> > which works fine, however when putting it onto an old 
> RHEL3/Apache 2 
> > machine that we've got to use for development it just 404s and the 
> > only log generated is:
> 
> [snip]
> 
> Try http://wiki.apache.org/httpd/RewriteHtaccessIgnored
> 
> If that doesn't help, reply here with answers to the 
> questions it asks.

Thanks for that link, I went through the checks, double checking
everything as I went and found it was it was my mistake (I figured it
had to have been), I'd left the <Directory> within the virtual server as


<Directory /> 

instead of pointing to the same directory as the DocRoot.  Its now
working as it should be.

Thanks for the nudge in the right direction!

jc

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux