Does mod_rewrite come compiled in httpd in the fedora distribution.
On Tue, 1 Jun 2004 09:19:00 -0700, Richard Kurth rdkurth@starband.net wrote:
Does mod_rewrite come compiled in httpd in the fedora distribution.
Yes.
Hello Dylan,
Tuesday, June 1, 2004, 9:39:49 AM, you wrote:
DP> On Tue, 1 Jun 2004 09:19:00 -0700, Richard Kurth rdkurth@starband.net DP> wrote:
Does mod_rewrite come compiled in httpd in the fedora distribution.
DP> Yes.
Then how come I can not fined it. It does not show up in the httpd.conf file as a module and it is not listed as being compiled into http when I run httpd -l. What am I missing? I can not get it to run any rewrite rules. Is there a switch inn the conf file that I have to change. I am just moving to httpd 2 from apache 3.* so some things are different to me
Am Di, den 01.06.2004 schrieb Richard Kurth um 18:55:
Does mod_rewrite come compiled in httpd in the fedora distribution.
DP> Yes.
Then how come I can not fined it. It does not show up in the httpd.conf file as a module and it is not listed as being compiled into http when I run httpd -l. What am I missing? I can not get it to run any rewrite rules. Is there a switch inn the conf file that I have to change. I am just moving to httpd 2 from apache 3.* so some things are different to me
$ grep -n rewrite /etc/httpd/conf/httpd.conf.orig 188:LoadModule rewrite_module modules/mod_rewrite.so
http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html
shows you that you need to switch it on with
RewriteEngine on
and of course you will have to set proper rules.
Alexander
On Tue, 1 Jun 2004 09:55:52 -0700, Richard Kurth rdkurth@starband.net wrote:
Does mod_rewrite come compiled in httpd in the fedora distribution.
Yes.
Then how come I can not fined it. It does not show up in the httpd.conf file as a module and it is not listed as being compiled into http when I run httpd -l. What am I missing?
AFAIK the module should be in "/usr/lib/httpd/modules". You should also the following in your httpd.conf file:
LoadModule rewrite_module modules/mod_rewrite.so
Then use .htaccess files for your rewrite rules, eg:
Options +FollowSymLinks RewriteEngine On ReWriteRule ^main/([A-Z0-9a-z_]*) /index.php?file=$1.xml [L]
That's how I have it working on my machine anyway. Let us know if you getting it working ;)
Hello Dylan,
Tuesday, June 1, 2004, 10:32:05 AM, you wrote:
DP> On Tue, 1 Jun 2004 09:55:52 -0700, Richard Kurth rdkurth@starband.net DP> wrote:
Does mod_rewrite come compiled in httpd in the fedora distribution.
Yes.
Then how come I can not fined it. It does not show up in the httpd.conf file as a module and it is not listed as being compiled into http when I run httpd -l. What am I missing?
DP> AFAIK the module should be in "/usr/lib/httpd/modules". You should also DP> the following in your httpd.conf file:
DP> LoadModule rewrite_module modules/mod_rewrite.so
DP> Then use .htaccess files for your rewrite rules, eg:
DP> Options +FollowSymLinks DP> RewriteEngine On DP> ReWriteRule ^main/([A-Z0-9a-z_]*) /index.php?file=$1.xml [L]
DP> That's how I have it working on my machine anyway. Let us know if you DP> getting it working ;)
DP> -- DP> Dylan Parry DP> http://www.webpageworkshop.co.uk - FREE Web tutorials and references
This is what my rewrite rules look like they worked just fine on Apache 3.* but can not get them to work on httpd 2
RewriteEngine On RewriteCond %{HTTP_HOST} ^([^:]+) RewriteRule ^/acp/?$ http://%1:8080/autocontrol/index.php RewriteCond %{HTTP_HOST} ^([^:]+) RewriteRule ^/ucp/?$ http://%1:8080/user/index.php RewriteCond %{HTTP_HOST} ^([^:]+) RewriteRule ^/rcp/?$ http://%1:8080/resellerpanel/index.php RewriteCond %{HTTP_HOST} ^([^:]+) RewriteRule ^/ecp/?$ http://%1:8080/emailuser/index.php
On Tue, 1 Jun 2004 10:52:11 -0700, Richard Kurth rdkurth@starband.net wrote:
This is what my rewrite rules look like they worked just fine on Apache 3.* but can not get them to work on httpd 2
<snip/>
Have you tried adding the following to httpd.conf?
LoadModule rewrite_module modules/mod_rewrite.so RewriteEngine On
What does httpd say when you restart it after adding this?