Re: mod_rewrite woes

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

 



On 01/20/2011 09:10 PM, --[ UxBoD ]-- wrote:
----- Original Message -----
Did you set RewriteEngine on?

Where do you define your rules? If there's a VirtualHost handling the
request, they need to be defined there.


<VirtualHost *:80>
     ServerAdmin webmaster@xxxxxxxxxxxxxx
     DocumentRoot "/www/somedomain.com"
     <Directory /www/somedomain.com>
         AllowOverride All
     </Directory>
     ServerName www.somedomain.com
     ServerAlias somedomain.com www.somedomain.co.uk somedomain.co.uk
     ErrorLog "logs/www.somedomain.com-error.log"
     CustomLog "logs/www.somedomain.com-access.log" common
</VirtualHost>


As Eric wrote, you need to put your Rewrites inside the <VirtualHost> directive, i don't see them there in the above snippet. Possibly the "RewriteEngine On" needs to go there too.

/BjÃrn

---------------------------------------------------------------------
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