View previous topic :: View next topic |
Author |
Message |
Mr.Neutron n00b
Joined: 02 Apr 2005 Posts: 11 Location: Czech republic
|
Posted: Fri Nov 23, 2007 3:11 pm Post subject: mod_rewrite not working at all |
|
|
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 |
|
|
Mr.Neutron n00b
Joined: 02 Apr 2005 Posts: 11 Location: Czech republic
|
Posted: Fri Nov 23, 2007 3:21 pm Post subject: |
|
|
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 |
|
|
planet-admin Apprentice
Joined: 27 Mar 2004 Posts: 213 Location: Boise, ID
|
Posted: Fri Nov 23, 2007 8:52 pm Post subject: |
|
|
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 |
|
|
planet-admin Apprentice
Joined: 27 Mar 2004 Posts: 213 Location: Boise, ID
|
Posted: Fri Nov 23, 2007 9:11 pm Post subject: |
|
|
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 |
|
|
|