Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mod_rewrite not working at all
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Mr.Neutron
n00b
n00b


Joined: 02 Apr 2005
Posts: 11
Location: Czech republic

PostPosted: Fri Nov 23, 2007 3:11 pm    Post subject: mod_rewrite not working at all Reply with quote

Hi,
i am trying to run mod_rewrite.
httpd.conf:
Code:

<Directory />
    Options FollowSymLinks
    AllowOverride All
    RewriteEngine On
</Directory>


and in my .htaccess file just for seeing whether it works or not:
Code:

RewriteEngine on
RewriteRule    (.*)    http://www.google.com     [R]


but nothing works. Module mod_rewrite is loaded, everything else works without a problem. Anyone can help, please? Thanks.
_________________
Mr Neutron: "Mrs S, I can eat enormous quantities of ice cream without being sick."
Back to top
View user's profile Send private message
Mr.Neutron
n00b
n00b


Joined: 02 Apr 2005
Posts: 11
Location: Czech republic

PostPosted: Fri Nov 23, 2007 3:21 pm    Post subject: Reply with quote

Apache: 2.0.58
PHP: Version 5.2.3-pl3-gentoo
_________________
Mr Neutron: "Mrs S, I can eat enormous quantities of ice cream without being sick."
Back to top
View user's profile Send private message
planet-admin
Apprentice
Apprentice


Joined: 27 Mar 2004
Posts: 213
Location: Boise, ID

PostPosted: Fri Nov 23, 2007 8:52 pm    Post subject: Reply with quote

I'm in the same place, and this is recently that it stopped working, perhaps following the libexpat.so.0 problem. I'm wondering if that has any relationship to it.

If you find a solution, please let me know.

Michael
_________________
Michael S. Moody
Sr. Systems Engineer
Global Systems Consulting
Web: http://www.GlobalSystemsConsulting.com
Back to top
View user's profile Send private message
planet-admin
Apprentice
Apprentice


Joined: 27 Mar 2004
Posts: 213
Location: Boise, ID

PostPosted: Fri Nov 23, 2007 9:11 pm    Post subject: Reply with quote

Try something like this in the .htaccess file (it, for whatever reason, worked, where putting it in the vhost did not!):

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_USER_AGENT} ^.*(Googlebot|Googlebot|Mediapartners|Adsbot|Fee$
RewriteCond %{REQUEST_URI} !^/503\.php [NC]
RewriteRule .* /503.php

RewriteCond %{REQUEST_URI} !/down.html$ [NC]
RewriteRule $ /down.html [R=302,L]
</IfModule>
_________________
Michael S. Moody
Sr. Systems Engineer
Global Systems Consulting
Web: http://www.GlobalSystemsConsulting.com
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum