Re[4]: mod_rewrite in fedora's httpd

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

 



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



-- 
Best regards,
 Richard                            mailto:rdkurth@xxxxxxxxxxxx



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

  Powered by Linux