Re: ReWrite woes

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

 



I've tried putting
    <IfModule mod_rewrite.c>
                ReWriteEngine On
        </IfModule>

in both the apache2.conf
and the sites-enabled file.

No effect.

On Wed, 2009-01-14 at 14:20 -0500, Matt McCutchen wrote:
> On Wed, 2009-01-14 at 12:13 -0700, Sheldon Ross wrote:
> > I cannot get mod_rewrite to work. 
> 
> > <VirtualHost *>
> > 	ServerAdmin webmaster@localhost
> > 	
> > 	DocumentRoot /var/www/
> > 	<Directory />
> > 		Options FollowSymLinks
> > 		AllowOverride None
> > 	</Directory>
> > 	<Directory /var/www/>
> > 		Options Indexes FollowSymLinks MultiViews
> > 		AllowOverride None
> > 		Order allow,deny
> > 		allow from all
> > 		# This directive allows us to have apache2's default start page
> >                 # in /apache2-default/, but still have / go to the right place
> >                 #RedirectMatch ^/$ /apache2-default/
> > 		RewriteRule ^/bob$ /temp1/temp1/temp2
> > 
> > 	</Directory>
> > under /var/www/ I have temp1/temp1/temp2 directories set up just to try
> > and test this.
> > 
> > I've tried putting the rewrite rule just under the virtual host, in
> > a .htaccess file, in the httpd.conf. Nothing works.
> 
> You need "RewriteEngine On".
> 


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