Re: Re[2]: mod_rewrite in fedora's httpd

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

 



On Tue, 1 Jun 2004 09:55:52 -0700, Richard Kurth <rdkurth@xxxxxxxxxxxx> 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 ;)

--
Dylan Parry
http://www.webpageworkshop.co.uk - FREE Web tutorials and references



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux